question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offline map opens slower if activity history is long

See original GitHub issue

Describe your problem!

Today I had a day off and went caching spontaneously driving from cache to cache. After a while I noticed, that when “mapping a cache” it took some seconds for the map to show up. It got worse and worse over the day.

Back home I tried again and realized, that I could use the back key of my device quite a lot of time iterating over several map activites until finally reaching the state “press again to exit”.

Once I did this opening the cache map was fast again.

How to reproduce?

I tried again to open list, home, map, cache, back to list, and so on and could (kind of) reproduce, that opening the map for a cache or even the “normal” map got slower to start again.

Actual result after these steps?

If you have such long activity history, open the details of a cache and then long-click the compass rose to open the map for the cache. The activity itself opens fast but it takes 2-3 seconds until map and objects are loaded.

Expected result after these steps?

There is no crash involved, everything worked fine throughout the day (else the activity stack would have been shorter 😉 ), but I guess we should limit the activity history somehow and/or find out if several open maps block/slow down something and whether this is avoidable.

Additionally: IMHO it makes no sense to keep a real long activity history. Do we have set a limit for that?

Reproducible

Yes

c:geo Version

2022.02.26-NB

System information

Android 12, Samsung S20

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (18 by maintainers)

github_iconTop GitHub Comments

8reactions
fm-syscommented, May 9, 2022

IMHO the second (or my third variant) is the way to go, as there was quite some feedback at the beginning that the bottom navigation together with direct exit was not intuitive enough. But let’s try our voting system once again:

What shall happen then:

  1. Toast is shown “Press again to exit c:geo” and another time back key will leave the app directly from map

-> Vote with “party” (🎉)

  1. As the activity history is empty the user will fall back to the dashboard (signalling, that he reached the end of the history) and he would need another two times back to exit the app

-> Vote with “rocket” (🚀)

Or my personal idea / my favorite:

  1. As the activity history is empty the user will fall back to the dashboard. However, no “Press again to exit” is shown so another time back key will exit c:geo directly. (Similar to pre-bottomnav behavior)

-> Vote with “heart” (❤️)

1reaction
Lineflyercommented, May 9, 2022

Maybe it would indeed be worth a try to reset the activity stack once the user actively uses the bottom navigation. Use cases like mapping a list and returning to the list would then still work. We could test the usability in our nightlies. Not sure if there are other relevant use cases across different bottom nav activities, but I guess the bottom nav itself would be the “replacement” of the back action in such cases anyway.

So the functionality would be:

  • The activity history starts once the user taps on a bottom navigation element and builds up from there (e.g. Lists - Map of list or Search - result list - map of list) with the ability to use the back key to navigate back through those
  • Once the user uses the bottom nav to start another “main” activity the above mentioned history shall be removed and starts with the new activity as basis

Not sure though if the last activity in stack could/should always be the dashboard, e.g. the following example:

  • User is on lists
  • User selects “Map” from bottom nav
  • User presses back key

What shall happen then:

  1. Toast is shown “Press again to exit c:geo” and another time back key will leave the app directly from map
  2. As the activity history is empty the user will fall back to the dashboard (signalling, that he reached the end of the history) and he would need another two times back to exit the app
Read more comments on GitHub >

github_iconTop Results From Across the Web

Make Google Maps load faster - Android
If Google Maps loads slowly, here are a few things you can try. Get the latest app version ... On your phone or...
Read more >
How to Fix Google Maps When It's Not Working on Android
To fix this issue, simply turn off the Wi-Fi only option in the Maps app on your Android device: Open Google Maps on...
Read more >
Top 8 Ways to Fix Slow Google Maps on Android and iPhone
Step 1: Long press on the Google Maps app icon and tap on the info icon from the menu. Step 2: Go to...
Read more >
Slow Maps Rendering On Tableau Server - Knowledge Base
When accessing a view that includes maps published on Tableau Server, it takes over several minutes. The same view renders only in a...
Read more >
Most Common GPS Tracking Problems Experienced by Users
Here are some of the most common GPS tracking problems users experience with their device because of these conditions. Device won't start up....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found