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. Kingdr
    Replies:
    0
    Views:
    204
  2. Ginjitzu
    Replies:
    0
    Views:
    318
  3. etienne langevin
    Replies:
    0
    Views:
    202
  4. Balos1234
    Replies:
    0
    Views:
    516
  5. claytoncarney
    Replies:
    0
    Views:
    803
  6. Fabrizio Ferrari
    Replies:
    0
    Views:
    821
  7. raksheg
    Replies:
    0
    Views:
    796
  8. Mohamed13
    Replies:
    0
    Views:
    705
  9. AlexEv
    Replies:
    0
    Views:
    1,398
  10. АгентГосдепа
    Replies:
    0
    Views:
    5,095

Share This Page

Loading...