How can i open the Dialog? So the user can choose the app?
if i use this:
then it open every time snapchat.B4X:Private intent As INTENTID If intent.IsInitialized = False Then intent.Initialize intent.ShareImage(File.DirInternalCache,"mypic.png")
when you select one app, the device set it the default app, you can reset manually on the device config, on Default Apps.
You can try force the code to open all the apps on the dialog.
try this code, if works i will update the lib in 2 or 3 days. (i m not on pc at this moment
B4X:
Dim u As Uri
u.Parse("file://" & File.Combine(folder,imagefile))
Dim i As Intent
i.Initialize(i.ACTION_SEND,"")
i.SetType("image/*")
i.PutExtra("android.intent.extra.STREAM",u)
i.WrapAsIntentChooser("Select")
StartActivity(i)
Last edited: