Android Question whatsapp is not showing in choose option

ilan

Expert
Licensed User
hi

i would like to share a text via whatsapp but whatsapp is not showing on the choose window when using intent. i do see facebook, messanger,... but not whatsapp.

this is my code:

B4X:
Dim Intent1 As Intent
                Intent1.Initialize(Intent1.ACTION_SEND, "")
                Intent1.SetType("text/*")
                Intent1.PutExtra("android.intent.extra.TEXT", txtInput)
                                Intent1.WrapAsIntentChooser("Choose")
                StartActivity(Intent1)
if i put this:

B4X:
'Intent1.SetPackage("com.whatsapp")
i am able to share via whatsappbut this will only use whatsapp and not show me the choose window. how can i get whatsapp back to that window?

thanx
 

moster67

Expert
Licensed User
Maybe you need to scroll horizontally the show window?
It happens when many apps can be a target
 

Brandsum

Well-Known Member
Licensed User
I use INTENT ID for sharing purpose because it has so many functionalities.
B4X:
Dim i As INTENTID
i.Initialize
i.ShareText("Text to share",True)
 
Top