Javier Pech
Javier Pech

Reputation: 29

SDCard not accurate

I am working on a basic music player that will obtain the songs on the SDCard. It is at its early stages and I've encountered a slight problem. Whenever I run the app on my phone it gets the songs on the SDCard great. Now when I run the app on my teachers phone it gets the internal storage directory and not the SDCard path. I have implemented the Environment.getExternalStorageDirectory and it still returns the content on the interal memory. Is there a way I can fix this problem?? Oh and by the way my teacher's phone is a Samsung S3.

Upvotes: 1

Views: 81

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006944

so there is no direct solution to get the external sdcard path for the Samsung S3?

No. Moreover, you should not need it. A "basic music player that will obtain the songs" should be using MediaStore, not scanning external storage directly. Not only will it be faster, but on many devices, MediaStore will have indexed alternative storage locations (e.g., removable media) for you.

Upvotes: 2

Related Questions