java - rotate the screen Vs called finish() method on activity -
what difference between rotate screen , called finish() method on activity, if difference found please list method
how can differentiate, time screen rotated or called finish method on activity
when orientation change following methods of activity life cycle called
- onsaveinstancestate()
- onpause()
- onstop()
- oncreate()
- onstart()
- onrestoreinstancestate()
- finally onresume()
if dont call onsaveinstancestate() during rotation occurs activity loads again oncreate() can go through this link detail explaination
Comments
Post a Comment