I am working on a simple app, which should be able to access files from internal storage and as well as from external storage (Removable cards) like Micro SD cards (when an user inserts a SDCARD).
(Not the internal sdcard which comes with the device, I know it can be accessed using
Environment.getExternalStorageDirectory())
Is it possible to find out if an user has inserted a sdcard to the device?
If yes, Is it possible to get the path of that SD CARD?
I found that hard coding the path was not a good option, cos different devices has different paths for sdcard inserted by user.
Any help is very much appreciated.
Thank you.
Android consider Both removable storage media (such as an SD card) or an internal (non-removable) storage as external storage only.
Following is form developer.android.com
To check SDCard availability you can use following code.
Please read http://developer.android.com/guide/topics/data/data-storage.html#filesExternal