Android Question ContentChoose with multiple MIME Types

adriano.freitas

Active Member
Hi!

I need to use contentchooser to allow the user to open a file, which can be JPG or PDF. I can't get both types to be allowed in contentchoose. I tried using:

images/jpeg; application/pdf
and
images/jpeg|application/pdf

Neither of the two ways worked. Any solution?
 

adriano.freitas

Active Member
You can use wildcards: */*. You cannot pass multiple types.
Many thanks for the reply.

I had thought about it and implemented this usage. I think that if there was the possibility of defining an array of types, for example, the solution would be more "elegant"... Is this a limitation of Android or B4A?
 
Upvote 0
Top