update/summary: Geocoder would sometimes return nulls in some fields, and those were passed directly to log(), causing the crash. Updated the context here.
I threw together a Geofence + FusedLocationProvider + Geocoder + xChart in B4A to run some tests. First time I'm trying to do anything with any of these. Had it running around the house for a few days as I pulled this together, seeing how well the FLP and fences work in a building. Today for the first time I took it on the road. Seemed to be working fine. Then about a half-mile away from my starting point it crashed. The crash is reproducible; restarting it then continuing driving after a few minutes it crashes again. The Main activity was up at the time each time.
It's just a test app to exercise these services and see if I want to add them into an app I use. No crashes while having it on around the house. No other hints in the unfiltered log (although I didn't freshly crash it and check again, this content is from a few hours earlier). [turns out this was a clue - the geocoder address information was stable and completely filled out while stay in/around the building].
When I did look at it (was driving after all) in the first 1/4 to 1/2 mile it was running just fine and charting the samples as expected. Next glance and it was crashed.
I threw together a Geofence + FusedLocationProvider + Geocoder + xChart in B4A to run some tests. First time I'm trying to do anything with any of these. Had it running around the house for a few days as I pulled this together, seeing how well the FLP and fences work in a building. Today for the first time I took it on the road. Seemed to be working fine. Then about a half-mile away from my starting point it crashed. The crash is reproducible; restarting it then continuing driving after a few minutes it crashes again. The Main activity was up at the time each time.
It's just a test app to exercise these services and see if I want to add them into an app I use. No crashes while having it on around the house. No other hints in the unfiltered log (although I didn't freshly crash it and check again, this content is from a few hours earlier). [turns out this was a clue - the geocoder address information was stable and completely filled out while stay in/around the building].
When I did look at it (was driving after all) in the first 1/4 to 1/2 mile it was running just fine and charting the samples as expected. Next glance and it was crashed.
Last edited: