android - singleInstance launch mode: why is onCreate called after activity is brought to front? -


i launch main activity, change settings in ui, press button , reopen activity. oncreate() called again , activity default state. why this?

i expect onresume() called since have in manifest:

android:launchmode="singleinstance" 

try using movetasktoback(true); in onbackpressed() make current activity hide instead of destroying, can reopen again

@override public void onbackpresses(){    movetasktoback(true); } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -