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); }

3rd Dec 2020, 8:06 AM
George S Mulbah II
George S Mulbah II - avatar
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.
3rd Dec 2020, 9:43 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 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 ✌️
3rd Dec 2020, 8:47 AM
Piyush
Piyush - avatar
+ 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
3rd Dec 2020, 12:26 PM
George S Mulbah II
George S Mulbah II - avatar
0
Piyush[21 Dec❤️] are you talking about choosing it then saving it in a array
3rd Dec 2020, 8:55 AM
George S Mulbah II
George S Mulbah II - avatar