This object is in archive! 

Open gpx files from browser

Tom Esterez shared this problem 10 years ago
Solved

Please support android intent to open gpx files directly from browser. Orux maps support it. Verry usefull when we download gpx files from a website.

Replies (11)

photo
0

He Tom, no problem doing that here with 2.17.1


After hitting download I tap on the downloaded file and get the option to open it with Locus.


Locus ask`s for destination folder (also for points) and opens up with the track activated.


Only when the download comes as a .zip it works nearly the same but Locus did not activate the track. I did that maually afterwards.

photo
0

Hello,


It does not work for me on this page :


http://www.visorando.com/randonnee-de...


("Export gps" blue button under the map)


My config :


Nexus 5


Android Kitkat


Chrome stock browser


Locus pro 2.17.1


Works with Orux

photo
0

10498.gpx it worked for me. Defy and android 2.2.2


Did you try the file via computer and then to phone. Maybe first download was broken?

photo
0

The file is ok. And I`ve loaded it succesfully saving it first and oppening it from Locus. But when I tap the button from the browser, Locus is not present in the list of apps to open the file. See my screenshot :


photo
0

Ok, Menion, help! Maybe a KITKAT problem?

photo
0

Hard to say. For me it also works with Dolphin browser. After I tap on "Export gps", browser asks me where to download. After download I tap on file and it offer me Locus and Moon Reader :). With Chrome from Google Play I`m unable to solve this, because chrome download this file to shared repository and I was unable to find a way to solve how to get this file ...


In your case, I think that browser send some weird request to system. It`s a stock browser right? You may try some alternative one. Without 4.4 on my Nexus 7, I`m unable to solve it ... but I`m sure it won`t take a long


EDIT: I`ve changed this to problem, because it should work

photo
0

Here is the logcat line :


I/ActivityManager( 769): START u0 {act=android.intent.action.VIEW dat=http://www.visorando.com/randonnee-de... typ=application/octet-stream cmp=android/com.android.internal.app.ResolverActivity} from pid 8268


Note that I installed "Intent intercept" on my phone, it does not react to this intent either. But Orux and VPlayer do.


I hope it helps...

photo
0

hmm "Intent intercept" - very nice, thank you for a tip


Anyway, "funny" is that

1) such intent is very very dangerous, because action.VIEW and type=application/octet-stream should be almost everything. Most app, when do not know what to set, set right this

2) Locus already handle this intent :). Because of this, it usually appear on places, where should not. But I think, rather more then nothing


I have absolutely no idea what happen here, but seems that Android intent filter is little bit broken on your device. Anyway I`ll test it as soon as I get A4.4 on Nexus 7 as I wrote

photo
0

I just tested on my Galaxy Nexus and had the same issue. Actualy my browser is not downloading the file beacause there is candidates to open it as a stream (orux and vplayer). After uninstalling both of it, it had the same behavious as you experienced.


So, if you want to reproduce the issue, just install orux map, Vplayer or both.

photo
1

I am getting Locus in the list for KML files, but not for gpx files from google drive. It does work when I first save them.


At first glance it looks like maybe Locus needs to register for the application/gpx+xml mime type (in addition to application/gpx)?


Here is the intent its not picking up (thanks to Intent Intercept - super handy app - thanks Tom :):


  1. ACTION: android.intent.action.VIEW
  2. DATA: file:///data/data/com.google.android.apps.docs/files/fileinternal/ec312379dbba4930eb1b62dd41d3d26a/SfCityLoopGpsiesGpxReverse.gpx
  3. TYPE: application/gpx+xml
  4. FLAGS:
  5. FLAG_ACTIVITY_FORWARD_RESULT
  6. FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
  7. FLAG_ACTIVITY_PREVIOUS_IS_TOP
  8. EXTRAS:
  9. EXTRA 1:
  10. Class: android.net.Uri$HierarchicalUri
  11. Key: android.intent.extra.STREAM
  12. 2 ACTIVITIES MATCH THIS INTENT:
  13. My Tracks (com.google.android.maps.mytracks - com.google.android.apps.mytracks.io.file.importer.ImportActivity)
  14. Bike Hub (com.bikehub.journeyplanner - com.bikehub.journeyplanner.view.favourites.Favourites)


Here is is the intent is does pickup when I try to open the same file from the file system:

  1. ACTION: android.intent.action.VIEW
  2. DATA: file:///sdcard/Download/SfCityLoopGpsiesGpxReverse.gpx
  3. TYPE: application/gpx
  4. FLAGS:
  5. FLAG_ACTIVITY_FORWARD_RESULT
  6. FLAG_ACTIVITY_PREVIOUS_IS_TOP
  7. 3 ACTIVITIES MATCH THIS INTENT:
  8. My Tracks (com.google.android.maps.mytracks - com.google.android.apps.mytracks.io.file.importer.ImportActivity)
  9. Locus Free (menion.android.locus - com.asamm.locus.core.MainActivity)
  10. Bike Hub (com.bikehub.journeyplanner - com.bikehub.journeyplanner.view.favourites.Favourites)

photo
1

Thank you David,


nice observation. Mime type for gpx+xml added, so after short test, it seems to work correctly now.


Btw. it's interesting that for me, Google Drive send intent with text/xml and not application/gpx+xml.

Replies have been locked on this page!