android - GPS coordinates using network -


i working gps in android application.my questions are, 1.is gprs needed gps coordinates,if want coordinates without gps? 2.what settings need enabled to work gps coordinates using network?

you want geographical coordinates pair: latitude, longitude. (not gps coordinates)

such coordinates , other attributes can delivered either gps, wlan or cell-tower locating.

for wlan , cell-tower (network) locating need internet connection.

for gps locationg provider, ususally don't need network (gsm) there android phones strange designed, such gps not work without having internet connection while starting gps.

if want network locating, can explicitly set location provider. set network_provider:

if (locationmanager.isproviderenabled(locationmanager.network_provider)) {     locationmanager.requestlocationupdates(locationmanager.network_provider, 0, 0, locationlistener); } 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -