Save a file with app state in othe nPause() method in android -


i want write incomplete app state file if user leaves app without saving state. believe have use onpause(). recommended practice? (in onpause() going encrypt string , create file , store it, bit time consuming).

if onpause() not place how save state?

yes save data onresume() state

@override     protected void onpause() {         // todo auto-generated method stub         super.onpause();        // stuff here      } 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -