开发者

How to get latitude and longitude values from Cell Id in android?

开发者 https://www.devze.com 2023-02-14 21:50 出处:网络
I am developing a android application in that i want find the user location using GPS. That is working fine .But if the GPS is Disabled means i want to find the user location based on the CellID and L

I am developing a android application in that i want find the user location using GPS. That is working fine .But if the GPS is Disabled means i want to find the user location based on the CellID and Loc .It is possible or not

It is possible means please tell me how to do开发者_StackOverflow中文版 that with sample code

Waiting for reply


Just request the "best" location provider, and you'll either get the GPS if it's available or the network (wifi / cell) if it's not.

LocationManager.getBestProvider()

You don't need to explicitly code to either GPS / network providers.


Here is complete tutorial of Location-Based Services Using CellID in Android.

0

精彩评论

暂无评论...
验证码 换一张
取 消