I have an app that shares audio files by WhatsApp, email, etc. My code works for one single file, but it does not work for two or more files at the same time. This is my code:
Intent intent = new Intent(Intent.ACTION_SEND).setType("audio/*");
for (i=0;i<completepath.size();i++)
{
File send=new File(completepath.get(i));
intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(send));
}
startActivity(Intent.createChooser(intent, "Send audio "));