DirRootExternal file permissions

davelt99

Member
Licensed User
Longtime User
Using the Emulator:

Camera1_PictureTaken (Data() as Byte)

Dim out as outputstream
out = File.OpenOutput(File.DirRootExternal, "image1.jpg", False)

is generating the following error message:
Java.io.FileNotFoundException: /mnt/sdcard/image1.jpg (Permission Denied)

I'm unable to locate where the /mnt/sdcard area might be to change the permissions.

This code was working correctly yesterday until I needed to create a new Emulator and raise the amount of memory.

Would anyone know where to change file permissions?

Thank you,
 

davelt99

Member
Licensed User
Longtime User
Just started getting these messages when starting the Emulator. I haven't seen them before and not sure what data partition it's referencing.

WARNING: Data partition already in use. Changes will not persist!
WARNING: SD Card image already in use: C:\Users\Admin\.android\avd\myEmulator.avd/sdcard.img
WARNING: Cache partition already in use. Changes will not persist!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…