java - Why does my Android app stops, when I move it to the background? -


i'm developing android application , have following code lines:

@override public boolean onkeydown(int keycode, keyevent event) {     if (keycode == keyevent.keycode_back || keycode == keyevent.keycode_home) {         movetasktoback(true);         return true;     }      [... more code ...]  } 

when test on emulator, works , closes app , opens @ point before. when load apk on real device, stops application , starts new, when open again. loading screen.

where problem?

have tried saving state of activity ? solution here


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -