How to save application state


Last Updated:

  1. yogeshlanjekar

    yogeshlanjekar Member This Topic's Starter

    Joined:
    Oct 5, 2010
    Messages:
    6
    Likes Received:
    0
    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

    Joined:
    Apr 20, 2010
    Messages:
    142
    Likes Received:
    23
    use onSaveInstanceState() or onRetainNonConfigurationInstance() in your activity.
     
  3. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    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...