Skip to content

Custom Layout not being read from the Storage Folder #692

@kevjs1982

Description

@kevjs1982

Description

According to the documentation OSMTracker will load custom layouts from the default storage location

v

On Android 13 this doesn't seem to work - no matter what I did I couldn't get the layouts to load - lower/upper cased extensions, changing the folder to remove the apostrophe, testing it was writing to the folder I expected.

However I noticed on the debug screen there are two export locations:-

Image

The external storage directory (which you can't access from within Android)
The export external public storage directory (which you can access from within Android)

There doesn't appear to be any option to change the former in the OSM settings, only the latter which is then created inside the Document's folder even when a leading / is specified

It appears that OSMTracker isn't reading the latter directory, only the former.

I was able to prove the files were valid and the former folder is being read by connecting the phone to a Windows PC and copying the files to
"This PC\Kev's S25 Ultra\Internal storage\Android\data\net.osmtracker\files\osmtracker\layouts"
and then going to settings>button presets where they showed up.

However this workaround is suboptimal and it requires tethering to a Windows PC, and I can't simply use Folder Sync to download files from Google Drive to the layouts folder I have used on previous phones/android versions (meaning changes require tethering to a Windows PC)

Steps to Reproduce

  1. Change the export location to "osmtracker"
  2. Optionally export a trace to confirm it's the folder you expect
  3. Create a folder in that location
  4. copy simple.xml (see below) to that folder
  5. settings, button presets, downloaded layouts should show "simple"

simple.xml

<?xml version="1.0" encoding="utf-8"?>
<layouts>
	<layout name="root">
		<row>
			<button type="voicerec" label="Voice" icon="logo_voice"/>
		</row>
		<row>
			<button type="textnote" label="Text" icon="logo_textnote"/>
			<button type="picture" label="Photo" icon="logo_camera"/>
		</row>
	</layout>
</layouts>

Logs or Console Errors (if applicable)


Screenshots or Videos (Optional)

File ignored by OSMTracker
Image

File detected by OSMTracker

Image

Both shown from Windows when phone is in File Transfer/Android Auto mode.

Trying to access Internal storage\Android\data\net.osmtracker\files\osmtracker\layouts from Folder Sync
Image

Trying to access the same folder from MyFiles
Image

Android Version

Android 13

Device Model

Samsung Galaxy S25 Ultra

Submission Checklist

  • I am reporting an issue, not asking a question.
  • I have updated to the latest OSMTracker version, and the issue still exists.
  • I have checked the Q&A Discussions, open and closed issues, and the wiki, but did not find a solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions