networking - Android: not getting phone location inside buildings -


i've strange problem here. i've activity shows list , populate based on user's location. there's no problem when phone it's outside, when i'm programming , testing phone doesn't receive location updates. of course problem can't leave workstation everytime want test (not mentioning debugging). phone should able @ least network or passive location it's not. here's code:

@override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_macro_zone_list);          locationmanager = (locationmanager) this.getsystemservice(context.location_service);          locationmanager.requestlocationupdates(locationmanager.passive_provider, 0, 0, this);         locationmanager.requestlocationupdates(locationmanager.network_provider, 0, 0, this);         locationmanager.requestlocationupdates(locationmanager.gps_provider, 0, 0, this);  }  @override     public void onlocationchanged(location newlocation) {         location = new latlng(newlocation.getlatitude(), newlocation.getlongitude());          loadmacrozonelist();     } 

permission it's granted, that's not problem. tried each provider both alone , together. never run such problem previous apps. it's quite frustrating, there can do?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -