0
Under review

The program ceased to keep location of GPS

Roman Romanov 11 years ago updated by munzli 11 years ago 5

The program ceased to keep location of GPS (Prestigio Multipad 7.0 Prime 3G) 

http://4put.ru/pictures/max/780/2398261.jpg

This is strange. It looks that there are GPS coordinates but Google Geocoder wasn't able to download your city name (even country). This is very strange. 



Yes, strange, because one of the updates to 3.1.0-3.1.2 the coordinates were determined and saved.

http://4put.ru/pictures/max/781/2399945.jpg

Have the exact same problem

here's the logcat:
06-03 14:47:30.839  10572-10572/com.kajda.fuelio I/locMANAGER﹕ Last location age 85
06-03 14:47:30.839  10572-10572/com.kajda.fuelio I/locMANAGER﹕ Using last known location - gps
06-03 14:47:30.849  10572-11705/com.kajda.fuelio I/doInBackground﹕ Pracuję GPS
06-03 14:47:30.859  10572-11705/com.kajda.fuelio W/System.err﹕ java.io.IOException: Service not Available
06-03 14:47:30.859  10572-11705/com.kajda.fuelio W/System.err﹕ at android.location.Geocoder.getFromLocation(Geocoder.java:136)
06-03 14:47:30.879  10572-11705/com.kajda.fuelio W/System.err﹕ at com.kajda.fuelio.p.a(AddActivity.java:514)
06-03 14:47:30.879 10572-11705/com.kajda.fuelio W/System.err﹕ at com.kajda.fuelio.p.doInBackground(AddActivity.java:489)
06-03 14:47:30.879 10572-11705/com.kajda.fuelio W/System.err﹕ at android.os.AsyncTask$2.call(AsyncTask.java:287)
06-03 14:47:30.879 10572-11705/com.kajda.fuelio W/System.err﹕ at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
06-03 14:47:30.879 10572-11705/com.kajda.fuelio W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:137)
06-03 14:47:30.879 10572-11705/com.kajda.fuelio W/System.err﹕ at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
06-03 14:47:30.889 10572-11705/com.kajda.fuelio W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
06-03 14:47:30.889 10572-11705/com.kajda.fuelio W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
06-03 14:47:30.889 10572-11705/com.kajda.fuelio W/System.err﹕ at java.lang.Thread.run(Thread.java:856)

so gps is working fine but fuelio can't use the geocoder service (which should be on the phone and is probably part of the google service framework)
it used to work on my phone so i'm gonna dig a bit deeper

what fuelio could at least do is save the coordinates even if the service is not present and just not have a city name display?

[edit]
another possibility is to write a small async method that calls:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
directly. this way there's no need for the service dependency

source: https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding
Under review
Hi. Do you have Samsung phone? I'm using Google's Geocoder but you will find many issues with it in Android project. Google knows about them and they are not fixing them.

There are many reasons for that: you are sharing IP and network with other users and you have temporary ban for location. You can't deal with it. 

I had problems on my S2. On my Nexus 5, Galaxy Nexus or Transformer tablet everything is fine.

Probably after reboot - everything will be fine. I can't do it right now but there is whole story on android source project and StackOverflow.

I'm not using the most accurate position to save the point on map. I'm not using network provider.

Here's the link: https://code.google.com/p/android/issues/detail?id... (it's not resolved).

Reboot. That is the only one way I know for this issue.
thanks for the reply
i'm using a xiaomi mi-2s not connected to wlan

if you make sure that google service framework and google play services are running it works fine, but not all android devices have access to geocoder service.

maybe creating a method that directly calls the maps api will save you a lot of problems (mentioned in my edit above and in your issue link)