Hello. I try to finish activity in "onPause" when i lock my device:
public void onPause() {
mGLView.onPause();
mGLView = null;
gameRunning = false;
running = false;
paused = true;
renderer = null;
handler = null;
handlerTimer = null;
workThread = null;
mWorld.world.removeAll();
mWorld.world = null;
mWorld = null;
fb = null;
workThread = null;
gd = null;
mec = null;
MyGame.this.finish();
super.onPause();
}
But until i unlock device it's no "onStop" and "onDestroy" in Logcat, only this orange text:
... IInputConnectionWrapper(19178): getExtractedText on inactive InputConnection
After that I have to wait a few seconds, then again I see my game screen and only then the activity is completed...
Why the activity is not complete immediately, as in the method "finish()" without blocking device?