TreKing wrote:

>
>  α Centauri 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.
>
    switch (requestCode) {
    case 1:
     {
      if (resultCode == RESULT_OK)
      {
        Uri photoUri = 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.
>
 

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