adriano.freitas Active Member May 16, 2022 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User May 17, 2022 #2 You can use wildcards: */*. You cannot pass multiple types. Upvote 0
adriano.freitas Active Member May 17, 2022 #3 Erel said: You can use wildcards: */*. You cannot pass multiple types. Click to expand... 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
Erel said: You can use wildcards: */*. You cannot pass multiple types. Click to expand... 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?
Erel B4X founder Staff member Licensed User Longtime User May 18, 2022 #4 adriano.freitas said: Is this a limitation of Android or B4A? Click to expand... Android of course. Upvote 0
adriano.freitas Active Member May 18, 2022 #5 Erel said: Android of course. Click to expand... I imagined, after all, your work is impeccable! I just wanted to be sure because I've seen it on the internet but from a mime type separated by commas or |... But it must be specific cases! Thank you very much! Upvote 0
Erel said: Android of course. Click to expand... I imagined, after all, your work is impeccable! I just wanted to be sure because I've seen it on the internet but from a mime type separated by commas or |... But it must be specific cases! Thank you very much!