Hi
Following https://www.b4x.com/android/forum/threads/google-maps-with-fusedlocationprovider.83876/ tutorial, i tried to adapt it to my app.
GPS settings dialog should be opened from activity "Test" and not Main only when user taps on button for showing location on map. If we have that lat/lon in DB show it on the map. If we don't have that lat/lon in DB, call FLP, get lat/lon and show it on the map. User can use all other stuff in app without that GPS and FLP.
I don't have a problem with storing that values in DB, but logic with calling/showing GPS dialog to user and calling FLP. Where i put code which is in Main activity in sub Activity_Create? Should i change/adapt some other part of that code from that example or not?
Thanks
Following https://www.b4x.com/android/forum/threads/google-maps-with-fusedlocationprovider.83876/ tutorial, i tried to adapt it to my app.
GPS settings dialog should be opened from activity "Test" and not Main only when user taps on button for showing location on map. If we have that lat/lon in DB show it on the map. If we don't have that lat/lon in DB, call FLP, get lat/lon and show it on the map. User can use all other stuff in app without that GPS and FLP.
I don't have a problem with storing that values in DB, but logic with calling/showing GPS dialog to user and calling FLP. Where i put code which is in Main activity in sub Activity_Create? Should i change/adapt some other part of that code from that example or not?
Thanks