Since a update to android 11, i can't acces the Android/data/com.mapfactor.navigator/files/navigator/gpx directory to store my gpx-files (restrictions from android 11).
So i try to start Mapfactor with a GPX-file.
After starting the program, Mapfactor ask me to import the gpx file.
But after this, only a error messagr is displayed: "Importieren GPX-Dateiimport fehlgeschlagen"
Is there any possibility to import a gpx-file????
I have run logcat and find the folloing errors from mapfactor:
9-09 16:20:12.970 20857 20857 D FragmentManager: Op #0: REMOVE GPXImportDialogFragment{9833cc7} (84994f0f-4427-482e-821c-0c1b9cbe4a65 tag=GPX Import Dialog) 09-09 16:20:12.970 20857 20857 W System.err: java.io.FileNotFoundException: /data/user_de/0/com.mapfactor.navigator/Android/data/com.mapfactor.navigator/files/navigator/temp/primary:storage/emulated/0/Download/url/tannenecker.gpx: open failed: ENOENT (No such file or directory) 09-09 16:20:12.974 1746 6279 D MIUIInput: [FoucsChange]: Display 0 FocusedWindow From Window{c1efe71 mode=1 rootTaskId=465 u0 GPX Datei Import: tannenecker.gpx}(1,1) to null(0,0) 09-09 16:20:12.975 20857 20857 W System.err: at libcore.io.IoBridge.open(IoBridge.java:492) 09-09 16:20:12.975 20857 20857 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:236) 09-09 16:20:12.975 20857 20857 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:125) 09-09 16:20:12.975 20857 20857 W System.err: at com.mapfactor.navigator.gps.io.GPXExportWriter.createGpxFile(GPXExportWriter.java:76) 09-09 16:20:12.975 20857 20857 W System.err: at com.mapfactor.navigator.gps.io.GPXExportWriter.saveAsGPXTracks(GPXExportWriter.java:153) 09-09 16:20:12.975 20857 20857 W System.err: at com.mapfactor.navigator.utils.FileIntentParser$5.onGPXImport(FileIntentParser.java:269) 09-09 16:20:12.975 20857 20857 W System.err: at com.mapfactor.navigator.gps.io.GPXImportDialogFragment$6.onClick(GPXImportDialogFragment.java:136) 09-09 16:20:12.975 20857 20857 W System.err: at android.view.View.performClick(View.java:7559) 09-09 16:20:12.975 20857 20857 W System.err: at android.view.View.performClickInternal(View.java:7536) 09-09 16:20:12.975 20857 20857 W System.err: at android.view.View.access$3600(View.java:828) 09-09 16:20:12.975 20857 20857 W System.err: at android.view.View$PerformClick.run(View.java:28690) 09-09 16:20:12.975 20857 20857 W System.err: at android.os.Handler.handleCallback(Handler.java:938) 09-09 16:20:12.975 20857 20857 W System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 09-09 16:20:12.975 20857 20857 W System.err: at android.os.Looper.loop(Looper.java:236) 09-09 16:20:12.975 20857 20857 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7861) 09-09 16:20:12.975 20857 20857 W System.err: at java.lang.reflect.Method.invoke(Native Method) 09-09 16:20:12.975 20857 20857 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) 09-09 16:20:12.975 20857 20857 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) 09-09 16:20:12.976 20857 20857 W System.err: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) 09-09 16:20:12.976 20857 20857 W System.err: at libcore.io.Linux.open(Native Method) 09-09 16:20:12.976 20857 20857 W System.err: at libcore.io.ForwardingOs.open(ForwardingOs.java:166) 09-09 16:20:12.976 20857 20857 W System.err: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254) 09-09 16:20:12.976 20857 20857 W System.err: at libcore.io.ForwardingOs.open(ForwardingOs.java:166) 09-09 16:20:12.976 20857 20857 W System.err: at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7747) 09-09 16:20:12.976 20857 20857 W System.err: at libcore.io.IoBridge.open(IoBridge.java:478) 09-09 16:20:12.976 20857 20857 W System.err: ... 17 more 09
I think it's a bug from mapfactor at importing the gpx file (see the error messages in logcat above).
There is no possibility to import a gpx-file inside the app (very bad and a bit user unfriendly...) .
The only way i can force import a gpx file is: start mapfactor with the gpx-file with total commander.
But than: mapfactor shows me the data of the gpx-file (length/height/names/commend/.....)
and shows the IMPORT button.
After clicking the button the error occurs (bug)
The android handy was new installed (all old date erased and a complete new android 11 installation).
Mapfactor 7 was NEW installed.
I can't acces the actual place from the apk installation position over adb on this new installed android:
Look this:
cd /storage/emulated/0/Android/data/com.mapfactor.navigator/ -> ok, exists (ls show's: cache and files)
cd /storage/emulated/0/Android/data/com.mapfactor.navigator/files -> ok, exists
ls /storage/emulated/0/Android/data/com.mapfactor.navigator/files -> empty
mkdir /storage/emulated/0/Android/data/com.mapfactor.navigator/files/navigator -> ok
ls /storage/emulated/0/Android/data/com.mapfactor.navigator/files/navigator -> empty
mkdir /storage/emulated/0/Android/data/com.mapfactor.navigator/files/navigator/gpx -> ok
ls /storage/emulated/0/Android/data/com.mapfactor.navigator/files/navigator/gpx -> empty
That's the place where i put the gpx file until android 10.
Than i copy some gpx files to this gpx directory
.... and start mapfactor...
-> no gpx files pesent
It's a bug from mapfactor.
I try this too:
cd /data/data/com.mapfactor.navigator -> permission denied cd /data/user/0/com.mapfactor.navigator -> permission denied cd /data/user_de/0/com.mapfactor.navigator -> permission denied cd /storage/emulated/0/Android/media/com.mapfactor.navigator -> No such file or directory
cd data/user_de/0/com.mapfactor.navigator/Android/data/com.mapfactor.navigator/files -> permission denied
Any idea how I can import gpx files?
By the way: if i copy the same gpx file on the mobile-phone from my wife
with the same mapfactor v7
to dicrectory : /storage/emulated/0/Android/data/com.mapfactor.navigator/files/navigator/gpx
Yes, the apps cannot access data which does not belong to them or are not public. Apps have to be modified to access a file opened with e.g. file manager, that's why GPX import on Navigator does not work on Android 11: https://developer.android.com/about/versions/11/privacy/storage