简体   繁体   中英

Android avdr: working with avd and creating directory in sdcard

(1) i wrote a code to create a new file in sdcard ,i checked that card is mounted but i don't know how to see the file which is created in emulator. skin used is wvga800

(2) i want to create new directory in sdcard but file.mkdir() returns false and is it necessary that manifest file has to be written for checking output on avd also

You can access the sdcard directory using adb shell . Just browse to the /sdcard directory.

To write to the sdcard, make sure your AndroidManifest has the proper permission declared. In this case,

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

should be enough.

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