Android Question whatsapp is not showing in choose option

ilan

Expert
Licensed User
Longtime 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
Longtime User
Maybe you need to scroll horizontally the show window?
It happens when many apps can be a target
 
Upvote 0

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)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
I need to mention that the same code worked fine on previous android version. Now i am using android 9.

Whatsapp was showing on android 8
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…