I would like to know how to send an audio file through wpp, because when I try it appears "failed to share, please try again"
Intent shareIntent = new Intent(Intent.ACTION_SEND);
Uri uri = Uri.parse("android.resource://" + getPackageName() + "/raw/badum2.m4a");
shareIntent.setType("audio/m4a");
shareIntent.setPackage("com.whatsapp");
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivity(shareIntent);
I used the above code (with some changes) to send through facebook and it worked, but wpp gave this error. Would anyone know how to solve the problem?