开发者

android single-select image picker

I'd like to use the gallery image picker to select a single image. I do something like,

Intent intent = new Intent(Intent.ACTION_PICK, Media.EXTERNAL_CONTENT_URI);
startActi开发者_运维问答vityForResult(i, 0);

this works essentially, but if the user long-presses in the chooser, they enter multi select mode. first, I don't want them to select multiple images, but even if I did, they are stuck, because there's no way to "submit" the selection when in this mode.

I'd be happy if i could limit to single selection, or be able to get the multi-valued selection back correctly.


Looks like this is not possible. We ended up building our own image picker.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜