0

Can anyone tell me how to get the path of the mounted USB directory marshmallow.

Any help will be appreciated.

Many Thanks Asha Joney

Aasha joney
  • 508
  • 5
  • 23

1 Answers1

0

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.

greenapps
  • 11,154
  • 2
  • 16
  • 19