I am currently following this tutorial here:
https://www.b4x.com/android/forum/threads/background-location-tracking.99873/
I'm trying to make a simple app where the user clicks on a button to start the tracking service, and then every X-minutes, the dateTime/location will be saved to a CSV file (append).
If the user stops the tracking service before the X-minute is up, then the current time/location will be saved in the log.
Once the user clicks stop (I guess I call the sub Service_Destroy?), the result is saved into an excel file.
The StringUtils.SaveCSV function accepts a table, I'm not quite sure how to get the DateTime/Location into a table that it'll accept.
What I have done so far is
edited this project here so that the tracking is started when the button is pressed. Then, when the button is pressed again, I call the sub
Service_Destroy. Not sure how to destroy the notification as well though.
Sorry if what I'm asking for is dumb, I'm 100% new to Android Dev. I know VB6/VB.NET but this isn't as similar