Android Question open failed : eacces ..

Almora

Well-Known Member
Licensed User
Longtime User
min sdk: 14
target sdk : 23

I get this error.
.... open failed : eacces (permission denied)

When i make target sdk 22 there is no error.But googleplayconsole does not allow to install.
Target sdk does not allow to load from 23 to 22.
 

Attachments

  • PicsArt_03-11-11.38.28.jpg
    PicsArt_03-11-11.38.28.jpg
    104.8 KB · Views: 291
  • PicsArt_03-11-11.37.59.jpg
    PicsArt_03-11-11.37.59.jpg
    119.4 KB · Views: 318

Almora

Well-Known Member
Licensed User
Longtime User
LogCat connected to: 41003e53dcd3128f
--------- beginning of main
--------- beginning of system
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (oynat) Create, isFirst = true **
** Activity (oynat) Resume **
oynat_button1_click (java line: 2201)
java.io.FileNotFoundException: /storage/emulated/0/5.mp3: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:370)
at anywheresoftware.b4a.objects.streams.File.Copy(File.java:336)
at akay.yazilim.bjkm.oynat._button1_click(oynat.java:2201)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
at android.view.View.performClick(View.java:5697)
at android.widget.TextView.performClick(TextView.java:10826)
at android.view.View$PerformClick.run(View.java:22526)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
... 19 more
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
 
Upvote 0

Almora

Well-Known Member
Licensed User
Longtime User
I added a sample application. I get an error. Thank you.
 

Attachments

  • te.zip
    126.4 KB · Views: 262
Upvote 0
Top