greetings fellow coders.
i’m doing a project that involves gps locations, and im trying to get my current location on a button press.
but i can’t seem to get that working. i’ve tried a few ways to do it, but none of them works.
the thing is i dont need to know the location until the button is pressed and there is no reason for the app to unnecessary try to pinpoint the location from the start of the scene.
so my question is, is there a way to start the gps tracker on a button press, and get the longitude and latitude from where the user is when pressing the button, and then only update when the button is pressed again?