简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM