Re: [android-developers] Problem with resultforactivity and extras

2013-02-18 Thread Lew
TreKing wrote: So I *am* blind =) We all are at various times. I've been known to strongly avow something, post it, /then/ do the research and have to publicly retract. Oh, well. It keeps the little people from being too jealous. -- Lew -- -- You received this message because you are

Re: [android-developers] Problem with resultforactivity and extras

2013-02-17 Thread TreKing
On Sat, Feb 16, 2013 at 9:06 PM, α Centauri lucasact...@gmail.com 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

Re: [android-developers] Problem with resultforactivity and extras

2013-02-17 Thread Lew
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)

Re: [android-developers] Problem with resultforactivity and extras

2013-02-17 Thread TreKing
So I *am* blind =) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed

[android-developers] Problem with resultforactivity and extras

2013-02-16 Thread α Centauri
I want to show the Android gallery so I use: Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(image/*); intent.putExtra(A,abc); startActivityForResult(intent, SELECT_PICTURE); My problem is that when I catch the result, eg: public void onActivityResult(int

Re: [android-developers] Problem with resultforactivity and extras

2013-02-16 Thread TreKing
On Sat, Feb 16, 2013 at 7:16 AM, α Centauri lucasact...@gmail.com 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

Re: [android-developers] Problem with resultforactivity and extras

2013-02-16 Thread α Centauri
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