Hello
In the manifest file I entered two intents:
my problem is that I should recognize when I am called from a share video or from a share image.
I thought I'd check if the substring "/video/" or "/images/" is present in the URI, but I'm not sure it's exhaustive.
Is there a more correct way of understanding for which mimetype I was called?
Thank you
In the manifest file I entered two intents:
B4X:
AddActivityText (Main,
<Intent-filter>
<action android: name = "android.intent.action.SEND" />
<category android: name = "android.intent.category.DEFAULT" />
<data android: mimeType = "image/*" />
</ Intent-filter>)
AddActivityText (Main,
<Intent-filter>
<action android: name = "android.intent.action.SEND" />
<category android: name = "android.intent.category.DEFAULT" />
<data android: mimeType = "video/*" />
</ Intent-filter>)
my problem is that I should recognize when I am called from a share video or from a share image.
I thought I'd check if the substring "/video/" or "/images/" is present in the URI, but I'm not sure it's exhaustive.
Is there a more correct way of understanding for which mimetype I was called?
Thank you