Hello guys,
I'm trying Erel's test app (1.zip file from this thread, page 2) and having Permission Denied when choosing a photo from photo Gallery.
I started searching for a solution and one of then pointed to add the following line to the project manifest:
I did, but since the problem were still happening I searched a little more and found this other thread which instruct to add this other line to the project manifest:
So I did, but the error EACCES (Permission denied) is still occurring.
Now my manifest editor shows the following lines:
I need help to find the solution. What am I doing wrong or missing?
See below, log messages:
Regards,
Fernando
I'm trying Erel's test app (1.zip file from this thread, page 2) and having Permission Denied when choosing a photo from photo Gallery.
I started searching for a solution and one of then pointed to add the following line to the project manifest:
B4X:
AddPermission(android.permission.MANAGE_DOCUMENTS)
I did, but since the problem were still happening I searched a little more and found this other thread which instruct to add this other line to the project manifest:
B4X:
android.permission.WRITE_EXTERNAL_STORAGE
So I did, but the error EACCES (Permission denied) is still occurring.
Now my manifest editor shows the following lines:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(main, android:configChanges, "orientation|screenSize")
AddPermission(android.permission.MANAGE_DOCUMENTS)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
I need help to find the solution. What am I doing wrong or missing?
See below, log messages:
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Success = true, Dir = ContentDir, FileName = content://media/external/images/media/44330
realPath = /storage/3061-3065/DCIM/Camera/20180609_095720.jpg
Error occurred on line: 43 (Main)
java.io.FileNotFoundException: /storage/3061-3065/DCIM/Camera/20180609_095720.jpg: open failed: EACCES (Permission denied)
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Success = true, Dir = ContentDir, FileName = content://media/external/images/media/44330
realPath = /storage/3061-3065/DCIM/Camera/20180609_095720.jpg
Error occurred on line: 43 (Main)
java.io.FileNotFoundException: /storage/3061-3065/DCIM/Camera/20180609_095720.jpg: open failed: EACCES (Permission denied)
Regards,
Fernando