1. Download our Official Android App: Forums for Android!

Apps How to save application state

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

  1. yogeshlanjekar

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Oct 5, 2010

    Oct 5, 2010
    6
    0
    5
    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?

    Cheers,
    YoGi
     

    Advertisement

  2. id0001

    id0001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    142
    Joined:
    Apr 20, 2010

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands
    use onSaveInstanceState() or onRetainNonConfigurationInstance() in your activity.
     
  3. KlaymenDK

    KlaymenDK Android Expert
    Rank:
    None
    Points:
    143
    Posts:
    1,217
    Joined:
    May 29, 2009

    May 29, 2009
    1,217
    130
    143
    Denmark
    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

Loading...