Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SD Card Characteristics on Samsung Galaxy

Tags:

android

My app requires that the use manually copy a file from their PC to the SD card in a subdirectory that my app creates there (or I will look for it in the root directory). So far, so good (most people not having a problem except when they try to run my app while the phone is still connected and then ask why it tells them "SD card not mounted" :-) ).

Anyway, I'm wondering how the Samsung Galaxy phones work since my understanding is that they have an external AND internal SD card. My app currently calls "Environment.getExternalStorageDirectory()"; does this return the root of the EXTERNAL card?

Also, when the user mounts the device to their PC, what does it look like? Do they see two mounted drives, or only the external card as a drive, or something else?

like image 248
gordonwd Avatar asked Nov 17 '10 23:11

gordonwd


People also ask

How do I see what's on my SD card on my Android?

Most Android phones come preinstalled with at least one file manager app. A file manager app lets you view and work with the files sitting on both internal and SD card storage on your device. This app may be called File Manager, Files, or something similar and should be available in the app drawer of your device.

What Format should SD card be for Samsung phone?

Select an SD card with a minimum Ultra High Speed rating of UHS-1 is required; cards with a rating of UHS-3 are recommended for optimal performance. Format your SD card to exFAT file system with a 4K Allocation unit size.


1 Answers

To supplement Andy's answer. My findings with the Samsung Galaxy Tab have been that:

Environment.getExternalStorageDirectory() also returns the internal memory "/sdcard/". However unlike the Galaxy S, the actual SD card appears at "/sdcard/external_sd/".

When mounted with an 'external' SD card, I can report two extra drives appear in Windows, one for the internal and one for the external sd card.

like image 111
AJ87uk Avatar answered Sep 22 '22 04:09

AJ87uk