Hello,
1º that for receive images on my app, shared from another apps... work perfectly:
manifest:
main activity:
2º that i use to send images to anothers apps with the library INTENTID:
when join two codes (1 and 2) on a same project...
when i send image.... auto open my main... self app....
can't selected another app to share image
Thanks !!!
1º that for receive images on my app, shared from another apps... work perfectly:
manifest:
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>
)
main activity:
B4X:
Dim Intent1 As Intent = Activity.GetStartingIntent
If Intent1.HasExtra("android.intent.extra.STREAM") Then
subject = Intent1.GetExtra("android.intent.extra.SUBJECT")
Dim in As JavaObject = Activity.GetStartingIntent
file = in.RunMethod("getParcelableExtra", Array("android.intent.extra.STREAM"))
end if
2º that i use to send images to anothers apps with the library INTENTID:
B4X:
Private INTENT As INTENTID
INTENT.Initialize
INTENT.ShareImage(File.DirDefaultExternal,"imagen.jpg")
when join two codes (1 and 2) on a same project...
when i send image.... auto open my main... self app....
can't selected another app to share image
Thanks !!!
Last edited: