on 2024 Sep 02 3:50 AM
Basically I have it set up now where it will display the users coordinates when you push a button. Id like to have it so that when the users coordinates are being updated all the time (I downloaded the location polling GPS function from the marketplace) but I do not know how to make a pop up or a toast appear when the user is at a certain location. Id like to start with something simple like when they are about 20 meters away from a good restaurant in town.
I have it so that when i push a button it shows my coordinates, but I dont understand how to compare those to the coordinates of a place in town. I have been reading the learning journys and watching videos. Iv been trying everything for so long now im getting really discouraged.
I have Variables set up to get the users lat and longitude data, I also have set app variables to store the Hotel coordinates but i dont understand what im doing wrong.
Screen shots below
I am a software developer, learning still clearly lol. Im surprised that I find I'm getting closer using Kotlin and android studio than I am using this supposedly easier method.
With the polling, you can create 2 page variables:
Then create buttons to start and stop polling and o display the latitude and longitude values.
Then you can create a simple logic flow:
The other button stops the polling.
You might want to check out the great challenge @eshrinivasan published recently that dealt with location services: https://community.sap.com/t5/sap-builders-discussions/april-citizen-developer-challenge-sap-build-ap...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.