MapFactor within Cyanogenmod
  • Hi everybody,

    My Cyanogenmod based smartphone (Wileyfox) doesn't recognize .gpx file to be opened by MapFactor (v.3.0.125) and then imported within MapFactor.

    Any suggestion ?

    Thank you


  • 9 Comments sorted by
  • something to do with file associations

    fyi, you can copy gpx files to folder  android/data/com.mapfactor.navigator/files/navigator/gpx
  • Thank you for the information, but for an unknown reason, in Cyanogenmod (not Android), I cannot associate gpx file with Mapfactor.

    That is the main issue, I would like to solve.
  • Cyanogenmod is/was more or less pure Android. So you can assign file associations like in any other Android version, e.g. also in the Cyanogenmod successor LineageOs.
    I just checked in my old CM 11 = Android Kitkat 4.4 and in my LineageOs 14.1 = Android 7.1.2. Both handle it in the same way.
    So the question is: which app is currently opened by a gpx file.
    Then go to Settings->Apps, tap on that app, which opens app-info and scroll down to "Default start" or similar. There you can "Reset Actions to Standard".

    Next time you tap on a gpx file a menu is opened which offers the possible candidates.
    In my case for example Navigator and Oruxmaps. There is also an option to "Set as default app".

    That's at least how it works on my CM11 version.

    Good luck
  • Thank you Ulli for your suggestion.

    At the beginning, there was no other application than Navigator to handle gpx file on my smartphone.

    In Navigator - Settings--> Applications, "the default start" option is greyed out and I was unable to change this setting even when I deleted and downloaded again  Navigator.

    So I downloaded a different application, i. e. GPX Viewer to open .gpx file and this one was automatically recognised by Cyanogenmod  as a candidate to open .gpx file, but still no way to change the settings of default application.

    Version of Cyanogenmod is 13.0.5 on Android 6.0.1








  • There are more dependencies. Both on my previous Samsung S5 mini as well as on my current Moto 5Gplus, I have no associations to choose from using the default file manager. 
    From Total Command I can open with the 2 installed nav apps (and pdf viewer?).


  • You may be right, as I was using ES Explorer where it worked and showed my 2 navigation apps.
    Using the builtin cm11 file manager I get only the choice of editor and oruxmaps, Navigator is also missing here.
  • Thank for your help

    The described turn around - installing Total Commander - is working.

    Does that mean there is definitively a bug in MapFactor (v.3.0.125) or in Cyanogenmod is 13.0.5 ?

    Could an improvement be done in MapFactor v.3.1 in order to be considered as a candidate to open .gpx file ? 

  • The Android OS as such does not support mime types. By now there are about 1 million. It means that the application must tell via the ACTION_VIEW option which mime types it supports.

    I do think that MapFactor does it correctly. How would "good" file managers know which applications to choose if MapFactor would not let them know?

    I assume it is a bug in the very limited stock file managers. 
  • It is not so easy. On Android it is possible to open file using file intent, content intent (same kind of sandboxing) or http/https intent.

    this are associations in Navigator 3.0.x (and 3.1.13):
    <action android:name="android.intent.action.VIEW"/>
    <action android:name="android.intent.action.SEND"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <data android:scheme="file"/>
    <data android:mimeType="*/*"/>
    <data android:pathPattern=".*\\.gpx"/>
    ...

    and this are associations in Navigator 3.1.20+ (current beta):
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="file"/>
    <data android:mimeType="*/*"/>
    <data android:pathPattern=".*\\.gpx"/>
    ...

    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="content"/>
    <data android:mimeType="application/gpx"/>
    <data android:mimeType="application/gpx+xml"/>
    <data android:mimeType="text/xml"/>
      ...

    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="http"/>
    <data android:mimeType="application/gpx"/>
    ...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion