W Walter Member Licensed User Longtime User Jun 8, 2015 #1 In my application I want to captured data Save by Button Click on a USB stick. Tablet Android 4.2 And I get the following error: open failed: AEACCES (Permission denied) When reading files in the USB flash drive I have no problems! Are there simple and really working example?
In my application I want to captured data Save by Button Click on a USB stick. Tablet Android 4.2 And I get the following error: open failed: AEACCES (Permission denied) When reading files in the USB flash drive I have no problems! Are there simple and really working example?
DonManfred Expert Licensed User Longtime User Jun 8, 2015 #2 Do you have added the right permission to your manifest? B4X: AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage. I dont know from which android version the access to external storage is limited by google... Maybe 4+ In this case you should use B4X: File.DirDefaultExternal
Do you have added the right permission to your manifest? B4X: AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage. I dont know from which android version the access to external storage is limited by google... Maybe 4+ In this case you should use B4X: File.DirDefaultExternal
W Walter Member Licensed User Longtime User Jun 9, 2015 #3 Thanks for the information Error has remained File.Copy (File.DirRootExternal, "INI.txt", "/ mnt/usbhost1", "INI.txt")
Thanks for the information Error has remained File.Copy (File.DirRootExternal, "INI.txt", "/ mnt/usbhost1", "INI.txt")
S sorex Expert Licensed User Longtime User Jun 9, 2015 #4 that space between / & mnt is that copy/paste thingy?
W Walter Member Licensed User Longtime User Jun 9, 2015 #5 only at our Info the App it is natural File.Copy (File.DirRootExternal, "INI.txt", "/mnt/usbhost1", "INI.txt") Same mistake!
only at our Info the App it is natural File.Copy (File.DirRootExternal, "INI.txt", "/mnt/usbhost1", "INI.txt") Same mistake!
DonManfred Expert Licensed User Longtime User Jun 9, 2015 #6 Most probably you app just dont have the permissions to write to that path. It is limited by Android. See this answer from Erel to find the right paths you can try.
Most probably you app just dont have the permissions to write to that path. It is limited by Android. See this answer from Erel to find the right paths you can try.
W Walter Member Licensed User Longtime User Jun 10, 2015 #7 at 4.3 it works 4.2.2 when it does not work both devices are not rooted available at 4.2.2 Additional settings? root manger says setting = r / w
at 4.3 it works 4.2.2 when it does not work both devices are not rooted available at 4.2.2 Additional settings? root manger says setting = r / w