Hi,

I tried to createChooser the following way:

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("image/*");
Intent chooser = Intent.createChooser(intent, "Pick an image");
startActivityForResult(chooser, 1);

as well as that way:

Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(MediaStore.Images.Media.CONTENT_TYPE);
Intent chooser = Intent.createChooser(intent, "Pick an image");
startActivityForResult(chooser, 1);

Both take me directly into Pictures gallery. How did Dropbox app
implement chooser for picking a picture with such result (2 element
chooser):
"Pick a picture: //title
- File browser
- Photos/Gallery" ?

Both results, for my app and Dropbox example, were tested on the same
device, HTC Hero.

Thanks,
Mike

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to