How can i check Micro SDCARD is present in device and how i can access that to write some files.
Asked
Active
Viewed 273 times
0
-
possible duplicate of [How to detect if the device possess an sdcard ?](http://stackoverflow.com/questions/4578913/how-to-detect-if-the-device-possess-an-sdcard) – Yoni Samlan Apr 05 '11 at 15:10
2 Answers
0
You can connect your device to the computer and mount your micro sd card. Then you can go ahead and transfer the files like you do for any normal USB drive.

R3D3vil
- 681
- 1
- 9
- 22
0
There are several StackOverflow postings on these issues.
You want to use Environment.getExternalStorageDirectory()
to get the path to the SD Card. You can then do standard Java File I/O.
Android how to use Environment.getExternalStorageDirectory()
You must use the following permission.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Community
- 1
- 1

Stealth Rabbi
- 10,156
- 22
- 100
- 176
-
I know that. I am talking if you have SDCARD and MICRO SDCARD both on your device.. – user692708 Apr 05 '11 at 15:14
-
@user692708, your original question doesn't mention anything about what you've stated in this comment thread. Do you honestly expect a detailed answer from a vague, 1 sentence question? – Stealth Rabbi Apr 05 '11 at 15:18
-
-
@user692708, I think you are confusing Internal storage with SD Card external storage. We still don't understand what your question is. What are you asking? You still haven't updated the original question. – Stealth Rabbi Apr 05 '11 at 17:51