1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to save application state

Discussion in 'Android Development' started by yogeshlanjekar, Oct 27, 2010.

  1. yogeshlanjekar

    Thread Starter

    Hi all,
    My requirement is as follows :
    While my application is running and user presses a HOME button, my application goes in background. When user again clicks on application icon, my application should get start from the point where user had left.
    Can anybody help me out?


    1. Download the Forums for Android™ app!


  2. id0001

    id0001 Well-Known Member

    use onSaveInstanceState() or onRetainNonConfigurationInstance() in your activity.
  3. KlaymenDK

    KlaymenDK Android Expert

    Yeah, I just posted the same in your other thread.

    That said, it's bad form to post the same question in more than one place. :eek: We do want to help you, but there's no sense in two of us helping you twice with the exact same thing.

    Have a great day!

Share This Page