WhatsApp not available on Android Sharing Intent

574 views Asked by At

I was trying to have a Share Button on my Android activity which on clicking should share a '.doc' via available sharing apps. But WhatsApp is not coming in the sharing app chooser.(Gmail/Skype/IMO/AndroidBeam/Save to Google Drive options are available) My code snippet is given below:

public void shareFile() throws MalformedURLException
{
    Uri fileUri = Uri.fromFile(fileToBeSend);
    ArrayList<Uri> fileUris = new ArrayList<Uri>();
    fileUris.add(fileUri);

    Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
    sharingIntent.setType("text/plain");
    sharingIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
    sharingIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, fileUris);

    startActivity(Intent.createChooser(sharingIntent, "Share via"));
}
0

There are 0 answers