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

android - Sent Blob results empty -

javascript - Bootstrap Popover: iOS Safari strange behaviour -