Ich verwende folgenden Befehl um den Pfad für eine txt-Datei zu erzeugen.
Alles funktionierte bis zum letzten Android Update einwandfrei.
Vor einigen Tagen bekam mein Phone das Update zu Android 11.
Seither kann ich die App nicht mehr starten da bereits beim Aufstarten eine Fehlermeldung erscheint.
Versuche ich die App am Phone mit Android 10 zu laden funktioniert wieder alles normal.
Hat jemand eine Ahnung woran es liegt?
Alles funktionierte bis zum letzten Android Update einwandfrei.
B4X:
PfadBackup = File.DirRootExternal & "/xxx"
File.MakeDir(File.DirRootExternal, "xxx")
Vor einigen Tagen bekam mein Phone das Update zu Android 11.
Seither kann ich die App nicht mehr starten da bereits beim Aufstarten eine Fehlermeldung erscheint.
Versuche ich die App am Phone mit Android 10 zu laden funktioniert wieder alles normal.
Logger verbunden mit: samsung SM-A505FN
--------- beginning of main
--------- beginning of system
** Activity (main) Create, isFirst = true **
LocationManager has been initialized.
Added Separator
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
main_activity_pause (java line: 1519)
java.lang.RuntimeException: Object should first be initialized (CameraPosition).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
at anywheresoftware.b4a.objects.MapFragmentWrapper$CameraPositionWrapper.getZoom(MapFragmentWrapper.java:374)
at com.Flurnamenatlas.main._activity_pause(main.java:1519)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.Flurnamenatlas.main.onPause(main.java:275)
at android.app.Activity.performPause(Activity.java:8383)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1510)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5202)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5163)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5114)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:46)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
java.lang.RuntimeException: Object should first be initialized (CameraPosition).
sending message to waiting queue (activity_permissionresult)
running waiting messages (1)
Status: true
** Activity (main) Resume **
Status: true
** Activity (main) Pause, UserClosed = false **
main_activity_pause (java line: 1519)
java.lang.RuntimeException: Object should first be initialized (CameraPosition).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
at anywheresoftware.b4a.objects.MapFragmentWrapper$CameraPositionWrapper.getZoom(MapFragmentWrapper.java:374)
at com.Flurnamenatlas.main._activity_pause(main.java:1519)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.Flurnamenatlas.main.onPause(main.java:275)
at android.app.Activity.performPause(Activity.java:8383)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1510)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5202)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5163)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5114)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:46)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
java.lang.RuntimeException: Object should first be initialized (CameraPosition).
sending message to waiting queue (activity_permissionresult)
sending message to waiting queue (activity_permissionresult)
running waiting messages (2)
Status: true
Status: true
LocationManager has been initialized.
** Activity (main) Resume **
Status: true
*** Service (sgps) Create ***
GPS-Status true
** Service (sgps) Start **
Status: true
Status: true
** Activity (main) Create, isFirst = true **
LocationManager has been initialized.
PERMISSION_WRITE_EXTERNAL_STORAGE= true
** Activity (main) Resume **
Status: true
Status: true
mFragment_Ready
size2
Status: true
main_mcloseapp_click (java line: 4948)
java.io.FileNotFoundException: /storage/emulated/0/Flurnamenatlas/Sicherung/Meine Punkte.txt: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:492)
at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:448)
at anywheresoftware.b4a.objects.streams.File.Copy(File.java:341)
at com.Flurnamenatlas.main._mcloseapp_click(main.java:4948)
at com.Flurnamenatlas.main$ResumableSub_Activity_Resume.resume(main.java:1626)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
at anywheresoftware.b4a.BA$2.run(BA.java:387)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254)
at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8367)
at libcore.io.IoBridge.open(IoBridge.java:478)
... 15 more
java.io.FileNotFoundException: /storage/emulated/0/Flurnamenatlas/Sicherung/Meine Punkte.txt: open failed: EACCES (Permission denied)
Hat jemand eine Ahnung woran es liegt?