Open fedyshyn1994 opened 3 years ago
Hi @fedyshyn1994, Thanks for reporting this issue, we will take a look at it.
Unfortunately, it looks like this issue cannot be fixed. Accessing the SD card is much slower than accessing the internal memory. Functions like fstat work at times slower. On my Samsung Note 20 Ultra, it takes 15 seconds to list each map package. This could be a result of the file system used (FAT32), security improvements, changes in Android 11.
This makes it impossible to use on Android 11+, especially on lower end devices while the system UI freezes on several minutes (!) There should be way to fix it, since HERE We Go app offline mode works fine with SD card in on Android 11 and 12.
HERE WeGo based on SDK 4.x, and uses a different map format. Different directory structure and fewer files. Perhaps the new map data format requires fewer file accesses. Even so, it took several minutes to cancel the download of the package.
Describe the bug The application is freezing while external cache storage is used (with downloaded offline maps and Android 11+)
Steps To Reproduce
Expected behavior The application should not freezing.
Screenshots
Smartphone (please complete the following information):
Additional context I used the following project: https://github.com/heremaps/here-android-sdk-examples/tree/master/map-downloader . In the code, I change the internal storage to external and then download offline maps for 15 USA states - the application freezing. Using fewer offline map packages (1-2) works fine.