How do I have my app listed by the Whatsapp insert button

Asked

Viewed 94 times

1

I need my app to appear in the list of apps with sounds to share, qd we click on that clips from WhatsApp, knows that button of whatsApp to insert an image, a sound, etc... as in the image belowinserir a descrição da imagem aqui I was using for this the following intent-filter

<intent-filter>
        <action android:name="android.intent.action.SEND"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="audio/*"/>
</intent-filter>

that intent-filter makes my app appear in other lists, except in the WhatsApp.

For example, when there is some sound (outside of my app) and I click to share that sound, my app is listed as option... However qd I click on clips from whatsApp to add a sound it is not. It left me in doubt, am I doing the right thing? Because I don’t want my app to receive any sound, but rather inform the WhatsApp that it has sounds to be shared...

Can anyone help me? Does anyone know what I need to do? I’m new to this and I really need my app to appear in the list of possibilities of Whatsapp...

Note - qd I click on some sound from inside my app it can be shared normally via Whatsapp, the only problem is that it is not listed in that blessed clips button...

I do not know if I could express myself well (as I said I am new to this), if someone does not understand what I want to do, tell me that I edit the question :)

Thanks!

1 answer

0

Try this...

<intent-filter>
  <action android:name="android.intent.action.GET_CONTENT" />
  <category android:name="android.intent.category.OPENABLE" />
  <category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
  • Thanks Gabriel, but did not roll :( I tried to use only yours intent-filter and tb add it to what already had, but the app is not yet listed...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.