public class MainActivity extends QtActivity {
    final String TAG = "MainActivity";
    Intent mServiceIntent = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.i("MainActivity", " ================ onCreate");
        mServiceIntent = new Intent(getApplicationContext(), MyService.class);
        startService(mServiceIntent);
    }

    @Override
    public void onResume() {
        Log.i("MainActivity", " ================ onResume");
        super.onResume();
    }

    @Override
    public void onStop() {
        Log.i("MainActivity", " ================ onStop");
        super.onStop();
    }
    @Override
    public void onDestroy() {
        Log.i("MainActivity", " ================ onDestroy");
//        stopService(mServiceIntent);
        super.onDestroy();
    }
}