Hi friends. I searched a lot in the forum but couldn't find a working example.
The need is trivial: I want to manage images that different apps share with mine (through the usual menu "share with...")
I found very few posts on the argument, and most of them worked on very old Android versions.
Anyway, matching info found in this forum with that found on the Android developer pages I developed this simple app, but it doesn't work: I can't find it in "share with..." menu when I try to share an image found in the gallery.
Manifest:
Simple code (Starter service)
Thank you.
The need is trivial: I want to manage images that different apps share with mine (through the usual menu "share with...")
I found very few posts on the argument, and most of them worked on very old Android versions.
Anyway, matching info found in this forum with that found on the Android developer pages I developed this simple app, but it doesn't work: I can't find it in "share with..." menu when I try to share an image found in the gallery.
Manifest:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddActivityText(Starter,
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
Simple code (Starter service)
B4X:
Sub Service_Start (StartingIntent As Intent)
Log(StartingIntent.Action)
End Sub
Thank you.