Home > Mobile >  Android how to obtain music file path?
Android how to obtain music file path?

Time:09-19

Want to pass the uri music file path, for example/storage/emulated/0/1. MP3

Uri. GetPath () to get just the filename,

With the MediaStore. Video. VideoColumns. DATA acquisition, empty

CodePudding user response:

I'm sorry, write wrong, is MediaStore. Audio. AudioColumns. DATA

CodePudding user response:

/storage/emulated/0 this is built-in sdcard path you can get the path and then get music path

CodePudding user response:

refer to the second floor usecf response:
/storage/emulated/0 this is built-in sdcard path you can get the path and then get music path

Is click the button to jump to file management, I get a uri, resolution not to come out now

CodePudding user response:

refer to the second floor usecf response:
/storage/emulated/0 this is built-in sdcard path you can get the path and then get music path

Is click the button to jump to file management, I get a uri, resolution not to come out now

CodePudding user response:

Has been solved,,,,,,,,,,,,,,
  • Related