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
精彩评论