0

Please tell me the idea.

How to scan all media from Internal as well as External Storage.

I created a App which only scan data from my internal storage but not all the phone. Please give any idea

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
  • 1
    Welcome to SO! Can you show us part of your code which is 'scanning' your internal storage? – user5226582 Jul 04 '16 at 12:27
  • final String MEDIA_PATH = new String(Environment.getExternalStorageDirectory().getPath()); – Mohit Sharma Jul 05 '16 at 06:25
  • So it seems like `getExternalStorageDirectory()` returns internal storage directory instead. [Related question](https://stackoverflow.com/questions/5694933/find-an-external-sd-card-location/5695129#5695129). In short, there is no straightforward way of doing this, because there is no standard between different manufacturers. People come up with workarounds however. [Another relevant question](https://stackoverflow.com/questions/9340332/how-can-i-get-the-list-of-mounted-external-storage-of-android-device). Sorry there's no simple answer. – user5226582 Jul 05 '16 at 08:40

0 Answers0