Can anyone tell me how to get the path of the mounted USB directory marshmallow.
Any help will be appreciated.
Many Thanks Asha Joney
Can anyone tell me how to get the path of the mounted USB directory marshmallow.
Any help will be appreciated.
Many Thanks Asha Joney
If you are lucky -depending on device- you can get it as one of the items of getExternalFilesDirs()
.
Otherwise let the user choose the pen drive with Intent.ACTION_OPEN_DOCUMENT_TREE
.