Need help exporting recorded GPX tracks from Osmand? Drive/Skype/Beam/Gmail and MTP don't work.

334 views
Skip to first unread message

Bryce Nesbitt

unread,
Aug 21, 2016, 7:00:29 PM8/21/16
to Osmand
I have a track on the phone, recorded by osmand.  I've tried many things to get this off the phone:

  • Mount MTP and look in Android/data/net.osmand
  • Share by Drive (gives "Unable schedule for upload)"
  • Share by Skype (does nothing)
  • Share by Gmail (says "Permission denied for attachment"
  • Share by Beam (says "Beam did not complete") to another Nexus 5X.

How can I get this track off the phone?

Bryce Nesbitt

unread,
Aug 21, 2016, 7:08:57 PM8/21/16
to Osmand
Note gmail has storage permission....

Greg Troxel

unread,
Aug 21, 2016, 7:11:13 PM8/21/16
to Bryce Nesbitt, Osmand

Bryce Nesbitt <bry...@obviously.com> writes:

> I have a track on the phone, recorded by osmand. I've tried many things to
> get this off the phone:
>
> - Mount MTP and look in Android/data/net.osmand
> - Share by Drive (gives "Unable schedule for upload)"
> - Share by Skype (does nothing)
> - Share by Gmail (says "Permission denied for attachment"
> - Share by Beam (says "Beam did not complete") to another Nexus 5X.
>
> I also read: https://groups.google.com/forum/#!topic/osmand/puXJHk387D0
>
> How can I get this track off the phone?

On mine it's in

/storage/emulated/0/osmand/tracks/rec/yyyy-mm-dd_hh-mm_Ddd.gpx (last Ddd eg Wed)

1. install f-droid and then the cyanogenmod file manager and look for
the tracks. Once you are sure where they are it should be easier.

2. install syncthing and share the osmand directory from the sdcard with
a real computer and look there. I'm doing this, but I have had osmand
installed for a long time, and it seems where the storage is can depend
on when you first installed. In addition to getting your tracks
offloaded for use, this lets you copy maps between multiple Android
devices. Beware that synching doesn't do mod times on ANdroid, so I
sync each device separately and more or less rsync between the two
synced directories.

3. install syncthing and sync /storage/emulated/0. Then you can use
find :-)
signature.asc

Bryce Nesbitt

unread,
Aug 21, 2016, 7:23:24 PM8/21/16
to Osmand, bry...@obviously.com, g...@lexort.com
I don't have that directory.  I tried a file manager and under "root" is just "sdcard".
The phone is not rooted.  I am using MTP mode when accessing from a PC.

Why can't osmand export these files itself?  Is there a way to get a full path?

Bryce Nesbitt

unread,
Aug 21, 2016, 7:44:02 PM8/21/16
to Osmand
I found behavior slightly different if map is set to [x] show on map.

Greg Troxel

unread,
Aug 21, 2016, 7:58:02 PM8/21/16
to Bryce Nesbitt, Osmand

Bryce Nesbitt <bry...@obviously.com> writes:

> I don't have that directory. I tried a file manager and under "root" is
> just "sdcard".

"sdcard" may be the same as /storage/emulated/0; I'm not 100% clear on
this. It seems the two places to look are an osmand directory at the
root of storage, and in a app-named subdir of the android data
directory.

> The phone is not rooted. I am using MTP mode when accessing from a PC.

Mine isn't either, but I haven't used MTP.

osmand may be putting tracks in the private data directory, which isn't
accessible.

Sorry, I'm about out of clues.
signature.asc

Bryce Nesbitt

unread,
Aug 21, 2016, 9:12:42 PM8/21/16
to Greg Troxel, Osmand
It seems like osmand is putting recorded tracks in the private directory,
and thus when it tries to hand off to Gmail/Drive/Skype/Beam the export fails.
If so, pretty big bug in Osmand.

Bryce Nesbitt

unread,
Aug 22, 2016, 12:56:59 AM8/22/16
to Osmand
On one Nexus 5, share works.  Data settings are /storage/emulated/0/Android/data/net.osmand.plus/files
A second Nexus 5, installed at about the same time, ended up with /data/user/0/net.osamd/no_backup.  This one can't export tracks....

...what's up?

Stephane DE GRAEVE

unread,
Aug 22, 2016, 8:05:21 AM8/22/16
to Osmand
Hello,

I have the same issue with my Nexus 5.
The gpx files are not visible in MTP.
In OSM parameter, I can see the storage directory used wich is internal memory of the application = /data/user/0/net.osmand.plus/no_backup
If I change it to define manually, I can use my own directory /sdcard/osmand

In this case, I can save gpx file and see them with the ASTRO tool.

Becarefull, if you change this directory parameter, you can't see all track and map files.
I don't know how I can move those files because I can't see them.

So, you should:
  1. uninstall all your maps with the old directory,
  2. change the directory parameter to the new one
  3. and download your maps again.

Thanks
regards.

Bryce Nesbitt

unread,
Aug 22, 2016, 11:46:55 AM8/22/16
to Osmand
Turns out here's a fix and a bug report that can be upvoted:  https://github.com/osmandapp/Osmand/issues/2988

If you change the storage location under general settings, and select "copy", osmand will copy the track files to a place
that the "share" button can access.  Of course you do end up with two copies of the map files on your device, and a fair mess.  But it works.

Stephane DE GRAEVE

unread,
Aug 24, 2016, 8:02:00 AM8/24/16
to Osmand
I tried to changed the data directory but all maps are copied and not moved. So you lose lot of space (several Go) and my phone was full.
The "copy" button should be a "moved" one.

I fixed my issue with the following steps:
    1.     uninstall all your maps with the old directory,
    1.     change the directory parameter to the new one. (I use my own directory because I would be able to send them by mail if needed)
    1.     and download your maps again.
    1.     Use the Jeroen Mols' process: http://jeroenmols.com/blog/2016/07/21/cyclinggps/
    Regards
    Stéphane

    Barry Evans

    unread,
    Oct 17, 2016, 4:04:55 AM10/17/16
    to Osmand
    I have the same problem, using a clean instal of OSMAnd+ 2.4.7 on a Samsung S7 running  android 6.1. Tried to export a gpx from 'my places'. I was offered lots of destinations as expected. Chose dropbox. Export failed. Subsequently no other destiantions offered and dropbox export fails every time.
    Tried changing the storage director to shared, but OSMAnd+ could not find the maps so had to redownload and most of my configuration has gone. Plus the gpx can no longer be found. Grrrr.
    This used to work fine on earlier versions.
    Help and suggestions please
    Thanks
    Barry
    Reply all
    Reply to author
    Forward
    0 new messages