Trying to see or "share" Osmand files.

633 views
Skip to first unread message

P Wat

unread,
Jul 3, 2017, 6:07:10 AM7/3/17
to Osmand
Please explain how I can either reveal, or "Share", Osmand tracks.
I've recorded some tracks on a borrowed phone, and have been unable to copy them to any other device.
The tracks are clearly visible on the map and can be "Analysed".
Each time I try to Bluetooth them, a message says "Sending file to [laptop]", followed by another message "Unable to open file for sharing".
I've tried exploring the device with ES File Manager, and also by using USB lead from Laptop.  In neither case can I find any Osmand files. - Where are they?  How can I reveal or "Share" them?

FWIW -
(a) With other devices I've had no problem either "sharing" or viewing Osmand files.
(b) In Osmand, Settings, General Settings, Data storage folder, it says  "  /data/data/net.osmand.plus/files/osmand  ".
(c) The device is Samsung, Galaxy S3 mini, GT I8190 N, running Android 4.1.2 and Osmand+ 2.6.3.
(d) There is no SD card installed.
(e) There is no SIM installed.
(f) Bluetooth is working OK sending other files.

Majka

unread,
Jul 3, 2017, 9:38:38 AM7/3/17
to Osmand
Try this workaround first, start with one track only (will be necessary for each and every track): Go to Osmand, find "All tracks" and for every track you need to export, choose Share, Share in "ES Save to...". This allows you to choose directory on the phone where you can save the gpx file. Do not use the /data/data and its subdirectories, choose a directory you can access from the ES file explorer. 
I'm not sure if this will be possible, there is clearly problem with access to the tracks directory.

Or...
Is the phone rooted? In ES file explorer, you can under "Tools" find "Root explorer". This needs to be enabled to browse the data/data directory, even if the phone is rooted. Otherwise, the /data/data shows empty. Enable the Root explorer, go to the tracks directory and move the tracks from /rec/ subdirectory or export it from there.

As alternative, but a very heavy handed solution - try to move the whole Osmand data directory. It shouldn't be in the /data/data. This directory is simply wrong and brings too many problems as you can see. Moving the directory: Settings / common settings / data directory and choose one of the offered directories there. There will be offer to move current data to the new directory, take it and hope all goes right.

You'll have to look for the correct settings, I have non-English system and Osmand so the commands might be slightly different.

Jack Burke

unread,
Jul 3, 2017, 9:42:44 AM7/3/17
to Osmand
Have you tried using Samsung's My Files utility to search for .gpx ?

-jack

P Wat

unread,
Jul 3, 2017, 7:11:06 PM7/3/17
to Osmand
> Jack
That looks delightfully simple, thanks.   I found Samsung's "My Files", entered ".gpx" (exactly, but without the "").  Unfortunately "No results found".
ES File manager also did not find any gpx. 
I'll try Majka's method. - PW

Pere Pujal i Carabantes

unread,
Jul 3, 2017, 7:31:50 PM7/3/17
to osm...@googlegroups.com
El dl 03 de 07 de 2017 a les 03:07 -0700, en/na 'P Wat' via Osmand va escriure:
>
> (a) With other devices I've had no problem either "sharing" or viewing 
> Osmand files.
> (b) In Osmand, Settings, General Settings, Data storage folder, it says  "  
> /data/data/net.osmand.plus/files/osmand  ".
> (c) The device is Samsung, Galaxy S3 mini, GT I8190 N, running Android 
> 4.1.2 and Osmand+ 2.6.3.
> (d) There is no SD card installed.

In case other approaches fails, don't know if it is possible on that device:
Maybe adding a sdcard/usb stick, moving osmand and its data to it, then extracting the
added memory and putting it in a computer...

HTH
Pere

P Wat

unread,
Jul 3, 2017, 8:17:04 PM7/3/17
to Osmand
> Majka.
1) Tried "...Share, Share in ES Save to ...."  etc.  It attempts to do the Share, then flashes off before the share takes place.  Screen returns to "Tracks".
2) Not rooted.
3) In Osmand, Settings, General settings, Data storage Folder, I've deleted the first "/data", so I'm left with "/data/net.osmand.plus/files/osmand ", but the screen returns to saying "data//data/net.osmand.plus/files/osmand"
Maybe I have to make a more significant change, but for the moment I cant guess what.

I'll have another go tomorrow - Must sleep!
PW

Majka

unread,
Jul 4, 2017, 3:33:19 AM7/4/17
to Osmand
Reason for your problems are the non-rooted phone and letting Osmand save the files in the locked /data/data/ directory. Unless you gain access to this (through rooting the phone or a method which allows this on non rooted phone) or manage to get the Osmand data to "normal", accessible directory, you are stuck. Sharing the files uses 3rd party app and this one cannot get to the hidden and locked directory, and so the sharing doesn't work...

Try, if you can:

(1) - getting the Osmand data to another directory: 

When selecting the directory, click on the current path. I can then select another path, there are few Osmand suggests. Select one of them. Ideal would be "Internal SD" or similar, you can "stay" in root and simply choose "Internal SD"/Osmand/ or "Internal SD"/Android/data/net.osmand.plus/data/

Get completely out of the /data/ subdirectory if you can this way. If the first method doesn't work, see perhaps first in ES file explorer what directories you can reach, make a new subdirectory there, copy its path and in Osmand try to paste it in the settings.

(2) Getting access to the hidden directory by the only non-root alternative I know about:

Do you have adb switched on? If you know your way around this, I can navigate you further. Or, as alternative - download the Helium app from Google Play and do a backup. You would still need to enable adb debugging, the Helium app will instruct you what to do. Adb backup works similar to a system app, letting you reach into the data/data/ subdirectory and Helium uses this.

(3) Root the phone - this will allow access to the /data/data/


If nothing from this is possible, I am out of ideas...

P Wat

unread,
Jul 4, 2017, 5:41:37 AM7/4/17
to Osmand
> Majka.
(I tried using Pere's suggestion - Thanks Pere - with my only spare SD card, from Samsung tablet, but Samsung phone would not recognise it and wanted to format it.)
So, Majka, I'm looking at your latest suggestions:-
3) Rooting the phone is not an option, at the moment, because it is borrowed.
2) ADB (Android debug?)  - Maybe I'll save this for later.
1) I'd like to try " get the Osmand data to "normal", accessible directory," now.  I assume I'll need to type the exact name of a viable directory and path into "Osmand, Settings, General settings, Data storage Folder" - Is that correct?
If so, where do I identify a suitable one?

PW

Majka

unread,
Jul 4, 2017, 6:05:15 AM7/4/17
to Osmand
Just repeating, try following:
...
When selecting the directory, click on the current path. I can then select another path, there are few Osmand suggests. Select one of them. Ideal would be "Internal SD" or similar, you can "stay" in root and simply choose "Internal SD"/Osmand/ or "Internal SD"/Android/data/net.osmand.plus/data/

Get completely out of the /data/ subdirectory if you can this way. If the first method doesn't work, see perhaps first in ES file explorer what directories you can reach, make a new subdirectory there, copy its path and in Osmand try to paste it in the settings.
...

I repeat: Look at what Osmand offers you and/or what ES file explorer offers you. Both should direct you to the "internal sd card", however it is named on the phone.

P Wat

unread,
Jul 5, 2017, 12:25:02 PM7/5/17
to Osmand
Using PC and USB wire, I've created a new folder."pw".
In Osmand, Settings, General settings, Data storage Folder" - (a) I've repeated trying to change the location, buit it always resets.  (b) it does not offer alternative locations - (Your's does?)
Do I need to get into some sort of Osmand administrator mode? (I have recollections of this on the earlier phone.)
PW

Pere Pujal i Carabantes

unread,
Jul 5, 2017, 1:30:40 PM7/5/17
to osm...@googlegroups.com
El dc 05 de 07 de 2017 a les 09:25 -0700, en/na 'P Wat' via Osmand va escriure:
> Using PC and USB wire, I've created a new folder."pw".
> In Osmand, Settings, General settings, Data storage Folder" - (a) I've 
> repeated trying to change the location, buit it always resets.  (b) it does 
> not offer alternative locations - (Your's does?)
> Do I need to get into some sort of Osmand administrator mode? (I have 
> recollections of this on the earlier phone.)
> PW

Some more ideas, in the android settings->apps->osmand do you have the option
to switch it to the sdcard?, I know you don't have a sd card installed, but maybe 
android will treat some portion of the internal memory as sdcard so finally you 
can see it from the computer via usb.

Another idea is, if you have internet connection from that phone(wifi, bluetooth...)
and if you have an openstreetmap account, try to upload the gpx to openstreetmap from 
inside osmand. I don't know if this would work, as I never done myself, but if osmand
talks directly with openstreetmap servers instead of delegating the work to another
app in the phone, chances are that the gpx gets uploaded.
You will have to play with the OSM editing plugin if you want to explore this way and
maybe also with internet over bluetooth shared if that phone hasn't wifi nor data.


HTH
Pere

P Wat

unread,
Jul 6, 2017, 6:48:16 AM7/6/17
to Osmand
In android settings->apps->osmand, I see no option to switch to SD card.

The phone does have wifi and bluetooth operating, and i do already have an account for Open Street Map.
In there, using my PC to test my OSM account, I've found the option to "See your traces", then "Upload a new trace".
In the phone, going to I've found the option to "See your traces", then "Upload a new trace". It then offers a range of filing places, most of which are not applicable, but also "ES File Explorer".
The first path offered there is "/storage/sdcard0", within which are loads of folders, but I'm not seeing Osmand.

Still hoping for a solution
PW 

P Wat

unread,
Jul 6, 2017, 10:38:41 AM7/6/17
to Osmand
>Majka (or anyone).
Thanks for your persistance.

In Osmand "Settings, General settings, Data storage Folder" There is only "  /data/data/net.osmand.plus/files/osmand  ".  See (1) attached.  There does not seem to be any other offering - How do you make the other options visible?

In ES file Explorer (see 2) attached, if I hit the square to the right of "Home"  I get (3) and (4 = the lower part of 3).
In (3) Android, I get (5) Data.
In Data I get (6) ie from "com.android" to "it.navionics" then "nomedia" and nothing else.

Am I missing a trick somewhere?
Paul W



On Tuesday, July 4, 2017 at 11:05:15 AM UTC+1, Majka wrote:
1.png
2.png
3.png
4.png
5.png
6.png

Pere Pujal i Carabantes

unread,
Jul 6, 2017, 2:38:18 PM7/6/17
to osm...@googlegroups.com
El dj 06 de 07 de 2017 a les 03:48 -0700, en/na 'P Wat' via Osmand va escriure:
> In android settings->apps->osmand, I see no option to switch to SD card.
>
> The phone does have wifi and bluetooth operating, and i do already have an 
> account for Open Street Map.
> In there, using my PC to test my OSM account, I've found the option to "See 
> your traces", then "Upload a new trace". 
> In the phone, going to I've found the option to "See your traces", then 
> "Upload a new trace". It then offers a range of filing places, most of 
> which are not applicable, but also "ES File Explorer".
> The first path offered there is "/storage/sdcard0", within which are loads 
> of folders, but I'm not seeing Osmand.

As for "/storage/sdcard0", you could write in your settings data storage folder
"/storage/sdcard0/osmandtest" and let osmand create it, I've seen
bizarre problems
if one creates the folder with an app and then tries to use with another app,
if that doesn't works, try the openstreetmap approach.


So you have internet connection in that phone, then, in osmand, go to plugins
and enable the "OSM editing" plugin, open its settings and fill in your 
openstreetmap username and password,
return to the map, then go to"My Places" and select "MY TRACKS", now click on
the top right icon(an up arrow), another dialog would show where you could 
select the tracks you want to upload, expand the folders there, "Rec" in my case
and select just one gpx for the first test, now click on the top right again to 
upload to openstreetmap, hope all goes right :)
I've never uploaded a gpx to openstreetmap, so I have no idea where it will be 
available in the openstreetmap website, but I hope you will manage to find it.


Hope this helps
Pere

P Wat

unread,
Jul 7, 2017, 12:38:51 PM7/7/17
to Osmand
Hi Pere.
Method 1) - In "Osmand, Settings, General Settings, Data storage folder", I delete the whole existing entry.and replace it with "/storage/sdcard0/osmandtest".  Wow - I'm offered the option to shift everything, so I accept it.  It is now taking ages to copy a map file to the new destination.  If/when that succceeds .....
What should I do next?
Paul W

P Wat

unread,
Jul 7, 2017, 6:12:46 PM7/7/17
to Osmand
Update. And final episode.
With the newly allocated Data Storage folder, in "My places", at first there was only My Favourites, not My Tracks - Pretty worrying!
After trying again, My Tracks appeared and now the bluetooth transfer is successful.  Amazing!
It has now been possible to copy the required tracks to tablet and display them there in Osmand.  Phew!
I can now clean up the borrowed phone for return to its owner.
I didn't want to mention this earlier, but the track is potentially needed to support an insurance claim.  The one available from another device had inferior detail.
Thank you all greatly, especially Pere who persisted and drove me to success.
ATB
Paul W
===================================
Reply all
Reply to author
Forward
0 new messages