Of course I knew that. As you can see in this code, it uses data.getData() to get the image. Anyway, what I wanted to do is to attach some info that I didn't want to lose when creating new Activity. Finally I rewrote a lot of thing and use SharedPreferences.
Yep, the case statement was stupid and not only that. My code doesn't have it but I copied one I found in stackoverflow to paste it here with colors without working a lot. El sábado, 16 de febrero de 2013 20:56:20 UTC+1, TreKing escribió: > > > On Sat, Feb 16, 2013 at 7:16 AM, α Centauri <[email protected]<javascript:> > > wrote: > >> How can I save my extras? Any alternatives? > > > Do a Google Search for "Android Pick Image" - you will find that you want > to use the Data element of the Intent, not the extras. > > Also, your use of switching on resultCode with a hard-coded case statement > followed by an if check for the very same variable is quite silly. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

