Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter

    // 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions