Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in Android if OS kills my application, will getIntent() return the Intent with the same extras?

After my application has been restored, of course.

or I have to store everything at onSaveInstanceState()?

like image 500
grizzancs Avatar asked Nov 19 '10 09:11

grizzancs


1 Answers

This conversation seems to answer it: http://groups.google.com/group/android-developers/browse_thread/thread/f47af26b696af2e2. Look for the post starting with "Yes and no" and the few before it.

The answer is in the positive: yes, after restart of an Activity shut down by the OS, getIntent() will return an Intent with the same extras as the original.

Nevertheless, if some Android expert could confirm, I'd be glad to hear that. :)

like image 55
Jan Żankowski Avatar answered Oct 06 '22 00:10

Jan Żankowski