Android Question How to get gps coordinates and send to a url ?

Tapan Bhanot

New Member
Hi,

I am new to B4A and my quest to make a simple app has led me to B4A, I want to make a very simple app i.e how to keep on getting gps cooridnates i.e long/lat every 30 seconds and send them to a specific web url ?

A very simple app, no interface but if one has to be made, then can make so that it just shows that the app is working and sending coordinates properly, but main thing is that it should keep on running keep on and sending the gps coordinates.

How to start ??

Thanks in advance.
 

Tapan Bhanot

New Member
Hi,

I am trying to following GPS tutorial:
https://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content

I select the GPS library and copy / paste the code in tutorial but B4A says no GPS1.

Secondly I searched for service as you gave above and chose to go with sticky service but that is also giving error:

---
The third option which is supported through the attributes modules feature is to mark your service as a sticky service.

This is done by adding the following attribute to the service code:
Code:
#StartCommandReturnValue: android.app.Service.START_STICKY
---

How to use gps and keep app sticky ?

Thanks.
 
Upvote 0
Top