Getting the current location of the user for Android -


i building android application , locate phone without of gps or internet. instead, locate phone of cellular signals. how can achieved? ps. kind of new. in advance.

you can request system show location updates based on networkprovider. can done requesting location updates given parameter of network_provider

for instance below:

   locationmanager mlocmanager = (locationmanager)contextwrapper.getsystemservice(context.location_service);      mlocmanager.requestlocationupdates( locationmanager.network_provider, 60000, 0, this); 

below copied android documentation

// register listener location manager receive location updates locationmanager.requestlocationupdates(locationmanager.network_provider, 0, 0, locationlistener); first parameter in requestlocationupdates() type of location provider use (in case, network location provider cell tower , wi-fi based location).


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

keyboard - Smiles and long press feature in Android -