On Sat, Feb 16, 2013 at 9:06 PM, α Centauri <[email protected]> wrote:

> Of course I knew that. As you can see in this code, it uses data.getData()
> to get the image.
>

I might be blind, but I do not see anywhere where you call data.getData.


> Anyway, what I wanted to do is to attach some info that I didn't want to
> lose when creating new Activity.
>

You should have stated that fact then. Your question made it seem like you
were trying to get extras you expected from the image picker activity.


> Finally I rewrote a lot of thing and use SharedPreferences.
>

That is unnecessary - your class can maintain its own variables that you
can use both before the call to start the new activity and in
onActivityResult. You do need to persist them in onSaveInstanceState /
onRestoreInstanceState though to ensure they are around when
onActivityResult is called.

-------------------------------------------------------------------------------------------------
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.


Reply via email to