我已经阅读了一些例子,但我无法使用b4a
Dim share As Intent
share.Initialize(share.ACTION_SEND,"")
share.SetType("image/text/plain")
share.PutExtra("android.intent.extra.TEXT","myText")
share.PutExtra("android.intent.extra.STREAM",ParseUri(File.Combine(File.DirRootExternal, "Test.png")))
share.WrapAsIntentChooser("Share")
答案 0 :(得分:0)
您应该包含SetPackage:
Dim jo As JavaObject = share
jo.RunMethod("setPackage", Array("org.telegram.messenger"))