java - Android recreate when opening app from minimized -


first of beginner @ both java , android development

i need call recreate() when app opened minimized state. how can achieve this?

when java application opened first time, oncreate() method called. when activity "paused", onresume() method called resume activity. additionally, when application "stopped", onstart() method called resume activity. it's important understand difference between 2 when declaring want each method perform.

keep in mind onresume() , onstart() methods generic , may not re-initialize components lost when user closed activity. want this...

 @override public void onresume() {     super.onresume();    // initialize components here   }  @override public void onstart() {     super.onstart();    // initialize components here   } 

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -