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")
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)
Dim u As Uri
u.Parse(File.Combine("file://" & File.DirDefaultExternal,"mypic.png))
Dim i As Intent
i.Initialize(i.ACTION_SEND,"")
i.SetType("*/*")
i.PutExtra("android.intent.extra.TEXT", "I found this Picture in this App.")
i.PutExtra("android.intent.extra.STREAM",u)
i.WrapAsIntentChooser("Select")
StartActivity(i)
intent.ShareImage(File.DirAssets,"14-29.jpg",False)
intent.ShareImage(File.DirAssets,"14-29.jpg",True)
like the "shareimage", adding at the end the parameter "ShowAllSupportedApps"?
intent.showAllsupportedApps = true
intent.ShareImage(File.DirAssets,"14-29.jpg",False)
Have a look.
B4X:intent.showAllsupportedApps = true
intent.ShareImage(File.DirAssets,"14-29.jpg",False)
+1I cant download the Example (Error 404), can anyone share the example download again ?
Thank U Be4
I agree with the part that sends files that this lib might be using the old method and will not work.You don't need any library to create and share data based on intents. It is likely that this library was implemented before FileProvider was required so it will not work anyway.
Search for FileProvider for more information.
Please don't delete this thread - this thread still contain valuable posts and info even if others are outdated.@Erel if you want to delete this thread, I believe it would be better not to cause problems.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?