Jan 10, 2013

Get location from mobile or WIFI networks

Refer to last post, modify the String PROVIDER = LocationManager.NETWORK_PROVIDER to make it determines location based on availability of cell tower and WiFi access points. Results of location are retrieved by means of a network lookup.

 //String PROVIDER = LocationManager.GPS_PROVIDER;
 String PROVIDER = LocationManager.NETWORK_PROVIDER;


No comments:

Post a Comment

Infolinks In Text Ads