• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Emulator: Writing to SD card permissions error

edojones

Newbie
I am developing using Eclipse and the emulator and things are working nicely. However I now want to read a file from the emulators SD card and this is where I am having trouble.

On my phone I can read and write from the SD card no problem but when using the emulator all I get is a read/write permission error. I have tried ADB PUSH command but get this permission error. I have also tried ADB REMOUNT which says success, and also SU from within ADB SHELL but I still can not write the file. The file is tiny, only around 900kb and is plain text and my application can read it fine when running from my phone.

So, how do I make the SD card on the emulator read/write?
 
Many thanks for the prompt reply! I had missed out specifying to use a virtual SD card, so I have now done that and all sorted! Thanks!!
 
I have exactly the same problem, but one more question please could you tell me how did you specify the use a virtual SD card?
 
Preferences -> Android SDK and AVD manager. Mark your avd, click on Edit... and under section SD Card you can put a size.
 
Back
Top Bottom