0
Just wondering is there any way that we can pick choose multiple audio file from the android memory in android studio
This was my attempt public void chooseAudioFiles() { Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT); chooseFile.setType("audio/*"); chooseFile.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); startActivityForResult(Intent.createChooser(chooseFile, "Choose a file") , 2); }
4 ответов
+ 7
There's nothing wrong with your code, but the fault is with file explorers from which your apps gets Data.
The file explorer you used is unable to provide this implementation, so try with other strong file explorer. So your attempt might be deprecated.
Or,
You can create hole new activity only for choosing audio files, with medastore and so on. you can have so much control.
+ 10
George S Mulbah yes there is a way!
Why don't you make array? That will help you to chosse multiple audio files from the android memory...
edit: Yes!
Hope my hint helps you ✌️
+ 1
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ thank a lot I thought I had problem with my code
0
Piyush[21 Dec❤️] are you talking about choosing it then saving it in a array