1. Are you ready for the Galaxy S20? Here is everything we know so far!

Emulator: Writing to SD card permissions error

Discussion in 'Android Development' started by edojones, Nov 3, 2010.

  1. edojones

    edojones Newbie
    Thread Starter

    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?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. jonbonazza

    jonbonazza Android Expert

    Did you add an virtual SD card to your AVD when creating it? it does not include one by default.
     
    edojones likes this.
  3. edojones

    edojones Newbie
    Thread Starter

    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!!
     
  4. vfpribeiro

    vfpribeiro Lurker

    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?
     
  5. miXer

    miXer Android Enthusiast

    Preferences -> Android SDK and AVD manager. Mark your avd, click on Edit... and under section SD Card you can put a size.
     
    vfpribeiro likes this.
Loading...
Similar Threads - Emulator Writing card
  1. Attila Gubanyi
    Replies:
    0
    Views:
    247
  2. h110m
    Replies:
    0
    Views:
    762
  3. Fred Quimby
    Replies:
    3
    Views:
    834
  4. Hedwig7s
    Replies:
    0
    Views:
    729
  5. Richard Morey
    Replies:
    5
    Views:
    2,144
  6. Magixsword
    Replies:
    0
    Views:
    864
  7. workbench
    Replies:
    2
    Views:
    1,584
  8. brentc
    Replies:
    1
    Views:
    1,278
  9. Ulrich Hansa
    Replies:
    1
    Views:
    1,062
  10. cjnewman28
    Replies:
    2
    Views:
    2,680

Share This Page

Loading...