Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12.5 does no longer work offline for me #160

Open
RealVegOs opened this issue May 8, 2024 · 15 comments
Open

v12.5 does no longer work offline for me #160

RealVegOs opened this issue May 8, 2024 · 15 comments

Comments

@RealVegOs
Copy link

I have a maps folder on sd card. If I select this for offline maps, the app cannot read the files inside. I think this is a matter of map theme Elevate. If I select DEFAULT or OSMARENDER, it is said, they do not exist. I uninstalled AAT completely, downloaded new map and Elevate files, but after installing AAT again, it still can not read the offline maps. Please try yourself, by installing AAT form F-Droid, not from your repo. And please excuse that I cannot explain this stuff better. Thanks much!

@RealVegOs
Copy link
Author

Now I uninstalled again and downgraded to v12.4 and Elevate52. This works but maps of previews for overlays and recorded activities are not shown. I wonder, why this worked without Elevate and why I had previews. I always had my maps from openandromaps.org

@bailuk
Copy link
Owner

bailuk commented May 9, 2024

Do map previews have a black background or are they not shown at all?

Map previews are getting generated from cached map tiles. If there are no tiles cached a black background is used instead.
For offline maps "Enable Cache" must be checked. The tile cache then gets filled from using the map view.

@RealVegOs
Copy link
Author

They have a black background. I'll look after the cache setting. THX & Happy Father's Day!

@RealVegOs
Copy link
Author

RealVegOs commented May 9, 2024

Caching under Offline in map setting is activated.

@bailuk
Copy link
Owner

bailuk commented May 9, 2024

This issue is hard to reproduce for me. After I upgraded from f-droid, offline maps did not work. Then after changing some of the setting it worked again.

For testing there is a aat-android-debug.apk distribution that can be installed in parallel to the official release.

It is available from the release page and from automated builds and is inside aat-android.zip

Some things to check:

  • Is there a blue `"is readonly" note for maps and and themes in the preferences?
  • Is permission for "Storage" enabled (android app info)?

@bailuk
Copy link
Owner

bailuk commented May 9, 2024

Caching und Offline in map setting is activated.

Of course map tiles need to be regenerated and there must be some images in the map cache (after using the map). To regenerate a preview image: click on image -> Reload preview. If you want to generate all previews you need to delete the cache directory inside the activity directory. Like aat_data\activity0\cache

@RealVegOs
Copy link
Author

THX! - Later, I'm on my way.

@RealVegOs
Copy link
Author

RealVegOs commented May 10, 2024

This issue is hard to reproduce for me. After I upgraded from f-droid, offline maps did not work. Then after changing some of the setting it worked again.

For testing there is a aat-android-debug.apk distribution that can be installed in parallel to the official release.

It is available from the release page and from automated builds and is inside aat-android.zip

Some things to check:

* Is there a blue `"is readonly" note for maps and and themes in the preferences?

* Is permission for "Storage" enabled (android app info)?

I installed the debug version. (I already had it, but did not find it...) I have all my stuff on a sd card. So I have to select or copy the paths in general an map settings.
Screenshot_20240510-190356
Screenshot_20240510-190546

The map path is correct but as you see on the second screenshot it is read only. If I open the map view, I get an error that the map is not readable. I think that's a matter of Elevate. It works in v12.4 with Elevate52. BTW, most preview maps are back now in the old version.

Alas, I can't send you crash reports, because I have no email client on my Tablet. It's a WiFi Tablet only. Crashes occured by playing with settings, changing paths etc.

Cheers

@mingodad
Copy link

Even the 1.26 doesn't work for me on android 14 Redmi Xiaomi HyperOS 1.0.10.0, I've installed the 1.24 debug apk and I can see my offline maps.

@RealVegOs
Copy link
Author

Same for me! I also went back from 1.26 back to 1.24. Latest debug version does not work too. Again, I think
that's an issue with Elevate. And of course Android is the biggest shit on earth! You even can't get the real path of files unless you root your device, which ends the warranty in most cases.

@RealVegOs
Copy link
Author

Some things to check:
Is there a blue `"is readonly" note for maps and and themes in the preferences?
Is permission for "Storage" enabled (android app info)?

Stupid question, where do I find this permission setting for Android 13? I found App Info. There is "Storage and Cache" but there is nothing to enable.

grafik

@RealVegOs
Copy link
Author

I played a bit more but with no success. If I create a sub folder suddenly read and write access for it is shown in option. But opening card view still yields an error, no files found. If I give the full path to the map, cannot read file error occurs. I also was not able to grant read and write or manage external storage permission with adb. Nothing changed even without any adb error. So sadly I still have to stick to v1.2.4 Please, please, please!

@bailuk
Copy link
Owner

bailuk commented Jan 6, 2025

Maybe your using an old Map format that isn't supported anymore by MapsForge.
You should use V5 Maps as described here: https://github.com/bailuk/AAT/blob/master/doc/manual.md

@RealVegOs
Copy link
Author

THX. Alas no chance. I downloaded the latest map for Berlin and the latest Elements but I still get no maps found.

@RealVegOs
Copy link
Author

Perhaps this may help:
I have the maps directory on my SD card, which works well for v1.24
For debug v1.26 I have a maps_debug directory on my SD card. But as the screenshots above show, putting the right stuff for v1.26 to maps did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants