RaagaSudha
RaagaSudha

Reputation: 397

How to give read write permissions to sdcard for android 2.3 emulator?

Hi I need to keep images in my sdcard. So for that I tried to push my images into the sdcard but it is displaying sdcard d-------- in ddms. How can I give read and write permissions to emulator 2.3.3 version? Please help me regarding this.....

Thanks in advance

Upvotes: 1

Views: 8075

Answers (3)

C. Leung
C. Leung

Reputation: 6318

give <uses-permission> in the manifest

http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms

Upvotes: 0

josephus
josephus

Reputation: 8304

I don't think the permission string has changed ever since. Just add

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>

You need to add "virtual" external memory on your emulator first. In AVD, select your emulator, choose Edit, then type in the size of the sdcard you want under SD Card - Size.

Upvotes: 5

grattmandu03
grattmandu03

Reputation: 1286

you can follow this tutorial : http://androidblogger.blogspot.de/2009/02/tutorial-how-to-emulate-sd-card-with.html to create an sdCard on your emulator.

Then add this permission : <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> on your manifest file.

Regards, Sebastien

Upvotes: 1

Related Questions