May 4, 2024 - Start of tutorial post...
Based on:
The original project was based on the GPS object / lib.. a power hungry outdated feature.
This example uses the latest "Fused" location provider (GMS) to accomplish the same... and more...
This tutorial shall evolve over a (short) time as discoveries are made clear to update / post. Hang in there...
This project also includes an app to feed MOCK locations (lat/lon/etc..) into the FusedLocationProvderGMS - to test your final distribution.
1) B4XPages
Although introduced long time ago - and evolved since then - this is my first introduction. (been busy sowing and harvesting my garden).
The first thing I notice is that B4A (pause and resume) complexities been (essentially) removed! Granted, there are some issues with Show and Hide ( show- B4XPages.ShowPage("destpag") hide - B4XPages.ShowPage("MainPage") but NOTHING that can't be overcome. It is all a matter of understanding what each does - and how each - PAGE - was implemented ( initialized / created / hidden).
For cross platform - (A,i,J), this IS a great leap forward. My focus shall be on B4A, for my ease of explanation...
All small Red Text are comments.
The Milepost Number and Milepost Name are GPS locations, derived form a SQLlite DB (lat/lon), that are either in front / or behind you depending on your travel direction.
There are much more intricacies to this project, but we shall leave it here for now until more can be defined in a clear and succinct manner.
Based on:
Open Street Map viewer - GPS
Hi, This b4Xlib contains a custom view (cvMap) which can display Open Street Map. The tiles are retrieved from the internet and cached in a database. You can add shapes and images on the map. UI : - Lat/lng Center of the map - Zoom Level - Compass Direction with rotation - Scale - Button...
www.b4x.com
The original project was based on the GPS object / lib.. a power hungry outdated feature.
This example uses the latest "Fused" location provider (GMS) to accomplish the same... and more...
This tutorial shall evolve over a (short) time as discoveries are made clear to update / post. Hang in there...
This project also includes an app to feed MOCK locations (lat/lon/etc..) into the FusedLocationProvderGMS - to test your final distribution.
1) B4XPages
Although introduced long time ago - and evolved since then - this is my first introduction. (been busy sowing and harvesting my garden).
The first thing I notice is that B4A (pause and resume) complexities been (essentially) removed! Granted, there are some issues with Show and Hide ( show- B4XPages.ShowPage("destpag") hide - B4XPages.ShowPage("MainPage") but NOTHING that can't be overcome. It is all a matter of understanding what each does - and how each - PAGE - was implemented ( initialized / created / hidden).
For cross platform - (A,i,J), this IS a great leap forward. My focus shall be on B4A, for my ease of explanation...
All small Red Text are comments.
The Milepost Number and Milepost Name are GPS locations, derived form a SQLlite DB (lat/lon), that are either in front / or behind you depending on your travel direction.
There are much more intricacies to this project, but we shall leave it here for now until more can be defined in a clear and succinct manner.
Last edited: