i want test state of app when it's left in backstack long.
when open 20 apps 1 after other last used app (which app i'm testing) terminates , savedinstancestate occurs. there way simulate behaviour app i'm testing without having open 20 apps in order burry app in backstack?
yes, there's simple way it. enable do not keep activities under developer options. activity destroyed leave , onrestoreinstancestate() invoked when return.
alternatively, can force configuration change (like orientation) , recreate activity too. 1 issue approach there's bug jellybean/kitkat versions emulators fail rotate. (this works fine on device though.)
the workaround install rotatescreenorientation.apk can force emulator in portrait or landscape becomes tedious if have option wipe user data on emulator start enabled.
Comments
Post a Comment