Dear All!
I try to collect GPS location and send it every 10 minutes.
I used the StartServiceAt function to start the service under Android 7.0
The service successful get the GPS data, but it has some problem with the sending the data.
One time it is successful, one time is unsuccessful. If the phone is switched on, the service is working well.
I tried to use Httpclient with Http_client1.Execute(Http_krequest,2) and HttpUtils2 with Job.PostString. (Tried okhttp, okHttputils2 too) Also tried to use the #StartCommandReturnValue: android.app.Service.START_STICKY arguments but not helped.
I would like to send reliably the collected data while not use many energy.
Could you help me?
Thanks in advanced,
Istvan
I try to collect GPS location and send it every 10 minutes.
I used the StartServiceAt function to start the service under Android 7.0
The service successful get the GPS data, but it has some problem with the sending the data.
One time it is successful, one time is unsuccessful. If the phone is switched on, the service is working well.
I tried to use Httpclient with Http_client1.Execute(Http_krequest,2) and HttpUtils2 with Job.PostString. (Tried okhttp, okHttputils2 too) Also tried to use the #StartCommandReturnValue: android.app.Service.START_STICKY arguments but not helped.
I would like to send reliably the collected data while not use many energy.
Could you help me?
Thanks in advanced,
Istvan