1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question whatsapp is not showing in choose option

Discussion in 'Android Questions' started by ilan, Jun 26, 2019.

  1. ilan

    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:

    Code:
    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:

    Code:
    '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
     
  2. moster67

    moster67 Expert Licensed User

    Maybe you need to scroll horizontally the show window?
    It happens when many apps can be a target
     
  3. Brandsum

    Brandsum Active Member Licensed User

    I use INTENT ID for sharing purpose because it has so many functionalities.
    Code:
    Dim i As INTENTID
    i.Initialize
    i.ShareText(
    "Text to share",True)
     
  4. ilan

    ilan Expert Licensed User

    No, thats not the case.

    Screenshot_20190627-013728_Android System.jpg
     
  5. ilan

    ilan Expert Licensed 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
     
  6. LucaMs

    LucaMs Expert Licensed User

    Any news about this?
     
  7. Peter Simpson

    Peter Simpson Expert Licensed User

    Did you ever try the IntentId library @ilan, it works perfect on Android 8, 9 and 10...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice