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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -