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

  1. onsaveinstancestate()
  2. onpause()
  3. onstop()
  4. oncreate()
  5. onstart()
  6. onrestoreinstancestate()
  7. finally onresume()

if dont call onsaveinstancestate() during rotation occurs activity loads again oncreate() can go through this link detail explaination


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -