I don't understand this sentence "which has a link to the original one". 
What does that mean in your code?

Anyway, 
onRestoreInstanceState is only called when your Activity's process had been 
killed (maybe due to low memory) while your Activity was still in the 
back-stack.
You can simulate this in Eclipse/DDMS as follows (example assumes you run it 
in the simulator):


   - Run your app in the simulator.
   - Start DDMS and find your app's process.
   - Click the 'green phone' button to start a call. The call-dialog will 
   come up and your activity will be hidden. You can check if 
   onSaveInstanceState is called.
   - Then go to DDMS and kill your app's process.
   - Then hit the Back-key. Your activity and its process will be restored, 
   your onCreate will have a non-null 'savedInstanceState' and 
   onRestoreInstance will be called (use Log statements to test this).
   

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to