I tried to create a folder using following command in terminal of Android emulator running on Windows 7 environment.
$ cd sdcard
$ mkdir pictures
But this gives "mkdir fail for pictures, permission denied" error. How can I correct this ?
Thanks in advance.
Try
$ adb shell "mkdir /sdcard/pictures"
More available at How to create sub-folder in SD Card of Android Emulator, using adb
Make sure you created an SD Card for your AVD.
In "Android Virtual Device Manager" -> Choose your AVD -> Click "Edit..." -> Specify Size for your SD Card and click OK.
Next time you'll launch your AVD you could use:
$ adb shell
# mkdir /mnt/sdcard/your_folder
to create your folder.
Good luck.
Add this on the AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
Hope that helps
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.