networking - Android NETWORK location is not responding -


i'm initiating location provider way:

    locationmanager     locationmanager     = (locationmanager) context.getsystemservice(context.location_service);     intent              locationintent      = new intent(context, locationreceiver.class);             pendingintent       pendingintent       = pendingintent.getbroadcast(context, 0, locationintent, pendingintent.flag_update_current);          locationmanager.requestlocationupdates( locationmanager.network_provider,                                                 minimal_time,                                                 minimal_distance,                                                 pendingintent); 

then, receiver implemented way:

    public void onreceive(context context, intent intent) {      if(intent.hasextra(locationmanager.key_location_changed)) {         location location = (location)intent.getextras().get(locationmanager.key_location_changed); 

my issue following:

on galaxy nexus, receiver never triggered.

i succeed make triggered if manually started google maps application before. then, works without issue. if reset phone (remove battery), issue appears again.

any solution this?

i went through lot of similar issues on stackoverflow, never found working solution.

edit:

i found issue happening using sim no data access, if wifi enebaled , connected. using sim data access, issue not happening.

on nexus one, issue not happening, whatever sim use (with data or without data).


Comments