When i click home button and then come back to to my application it doesn't show the last values on the listview or any other view it just look same with when i started the application.I believe it is can be done with onResume and onPause but i couldn't find how .
views:
40answers:
3
                
                A: 
                
                
              
            You can store all values in SharedPreferences in onPause, and then load them again in onResume and populate your views using that data.
                  EboMike
                   2010-10-14 16:06:56
                
              
                
                A: 
                
                
              
            Multiple ways to do this:
- An SQLite database
- Store the data as a file on the SD card.
- SharedPreferences for the activity.
- As a static variable in the Application class.
http://stackoverflow.com/questions/3682746/switching-between-android-activities
Had asked the same question some time back.
                  Abhinav
                   2010-10-14 16:24:30
                
              
                
                A: 
                
                
              
            To get a full understanding, read about activity lifecycles and saving activity state here.
                  RickNotFred
                   2010-10-14 18:13:59