Im using a few sensors - MediaRecorder and MediaPlayer, NotificationManager, a WakeLock, and LocationListener...
Here is my onResume() and onPause() functions:
You need to make sure that you have super.onStop
and super.onDestroy
in your overridden methods. This could be a good candidate for the problem you have:
@Override
protected void onStop() {
Log.w(TAG, "App stopped");
super.onStop();
}
@Override
protected void onDestroy() {
Log.w(TAG, "App destroyed");
super.onDestroy();
}
Stopped throwing exeptions after adding empty onPause and onResume events(I've added your methods anyways, just to be safe).
Altough, the second activity still halts for seemingly no reason. But I'll make an another question about that.