If you want to have the user pick an image, I would strongly recommend using
GET_CONTENT with MIME type image/*.  The ACTION_PICK approach is a more
restricted operation that is not as useful and I would discourage people
from using.

On Mon, Nov 8, 2010 at 9:47 PM, rnstewart <[email protected]> wrote:

> I have an app that (among other things) uploads pictures to Flickr,
> and it takes advantage of the Media Gallery intents to allow the user
> to choose an image to upload.
>
> When the user hits the "Upload" button, I run the following code:
>
>  startActivityForResult(new Intent(Intent.ACTION_PICK,
>
> android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI),
>                                  PICKIMAGEREQ);
>
> Where PICKIMAGEREQ is a constant number I have defined.
>
> This is, of course, supposed to launch the Media Gallery, allow the
> user to pick an image, and return the ID of the image they picked. I
> then use that information to pull the image from the Media Store and
> upload it.
>
> This has worked fine, on every device I have used it on and, AFAIK, on
> all of my users' phones as well. However, one of my users has a
> Samsung Fascinate, and he says it's FCing on him when he hits the
> "Upload" button. He sent me a log file, and in that I saw the
> following error:
>
> 11-08 20:42:54.893 E/
> AndroidRuntime(3640)android.content.ActivityNotFoundException: No
> Activity found to handle Intent { act=android.intent.action.PICK
> dat=content://media/internal/images/media }
>
> If I'm reading this correctly, it looks like his Android installation
> doesn't know how to handle the Media intent I am sending. How is this
> possible? He is running a factory ROM, so I can't imagine how he could
> have deleted or screwed up his Media app.
>
> Is there something different about the Media app on the Fascinate that
> I should know about? Has anyone else encountered this problem?
>
> Thanks for any help you can offer.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to