Chimpanse
Chimpanse

Reputation: 350

opening multiple URI's intent

I have some URI's in a arraylist file(the amount of URI's vary)

And i would like to open them to dispay for the user

currently my intent code looks like this:

Intent intent = new Intent();
    intent.setAction(Intent.ACTION_VIEW);
    intent.setType("image/*");
    intent.setDataAndType(Uri.parse("file://" + selectedItems.get(0)), "image/*");
    startActivity(intent);

but this obviously only get's the first URI, is there any way to parse multiple URI's?

if not i would love a pointer at the best alternative to show multiple URI's

Upvotes: 0

Views: 667

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006964

is there any way to parse multiple URI's?

Not for ACTION_VIEW or most Intent actions. ACTION_SEND_MULTIPLE is one of the few actions that supports multiple items as part of the core protocol.

if not i would love a pointer at the best alternative to show multiple URI's

Write your own UI for it.

Upvotes: 1

Related Questions