Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.spymod_java;
- import androidx.appcompat.app.AppCompatActivity;
- import android.content.Intent;
- import android.os.Bundle;
- public class MainActivity extends AppCompatActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- startServiceFunction();
- }
- public void startServiceFunction(){
- startService(new Intent(this, MyService.class));
- finish();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement