Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometime requestSingleUpdate not work when mobile access wifi (make sure that it can connnect internet) #17

Open
GoogleCodeExporter opened this issue Apr 8, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link


    // If the best result is beyond the allowed time limit, or the accuracy of the
    // best result is wider than the acceptable maximum distance, request a single update.
    // This check simply implements the same conditions we set when requesting regular
    // location updates every [minTime] and [minDistance]. 
    if (locationListener != null && (bestTime < minTime || bestAccuracy > minDistance)) { 
      IntentFilter locIntentFilter = new IntentFilter(SINGLE_LOCATION_UPDATE_ACTION);
      context.registerReceiver(singleUpdateReceiver, locIntentFilter);      
      locationManager.requestSingleUpdate(criteria, singleUpatePI);
    }

90% requestSingleUpdate ,when system get location will will send intent to 
BroadcastReceiver singleUpdateReceiver 

Sometime I see requestSingleUpdate not work.It make my application can not get 
location.But I test GooglePlace ,it can get location


What version of the product I'm using 4.1 

I 'm not understand why GooglePlace can get very good location


Original issue reported on code.google.com by playerth...@gmail.com on 5 Dec 2012 at 4:41

@GoogleCodeExporter
Copy link
Author

I also have the same issue. If I have restarted my phone and there is no 
previous location, on Wifi I don't get single update. Any solutions?

Original comment by vermasum...@gmail.com on 9 Jun 2013 at 5:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant