Monday 15 July 2013

Determining the provider of Location - Android -



Determining the provider of Location - Android -

i using locationclient method retrieve user's current location. working quite well, not accurate obvious reasons (i beingness within , using wifi etc). know if there determine location provider used fetch location. getprovider() returns "fused" regardless if in within or outside. need tell user not getting accurate location because in inside. better, tell user provider used fetch location.

you can check if provider available using isproviderenabled method:

mlocationmanager.isproviderenabled(locationmanager.gps_provider) mlocationmanager.isproviderenabled(locationmanager.network_provider)

android location-client

No comments:

Post a Comment