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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…