开发者

How to get device longitude and latitude programmatically in Android?

I don't know to how to get the latitude and longitude of device by programmatically? If you can provide some code snippet开发者_开发知识库 to get the latitude and longitude.


You ask the LocationManager.


Have a look at providing mock location data to emulator:

http://d.android.com/guide/topics/location/index.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜