// 注册定位事件
mLocationListener = new LocationListener(){
public void onLocationChanged(Location location) {
if (location != null){
GeoPoint pt = new GeoPoint((int)(location.getLatitude()*1e6),
(int)(location.getLongitude()*1e6));
mMapView.getController().animateTo(pt);
//lj=new Double((int)location.getLongitude()).toString();
//lw=new Double((int)location.getLatitude()).toString();
lj=String.format("%f",location.getLongitude());//想获取经度
lw=String.format("%f",location.getLatitude());、、想获取纬度
}
}
};
解决方案 »
- 安桌系统再应用层能接受L3或者物理层的信息吗?
- Android市场更新软件的方式
- android4 webview AbsoluteLayout 奇怪问题
- android 取得button 的R.id.am1
- 请问关于intent
- android自带的视频播放功能,当播放网络资源缓冲时,如何让他自带的progressbar显示?
- 点心桌面和GO桌面是怎么开发的?求教开发的思路
- Android 系统自带日历,如何不注册Exchange账户就可以直接使用。也就是舍弃同步功能,只想正常使用其自带日历功能。有什么好的思路。
- URI匹配问题
- 我下载的最新的linux ADT+eclipse中没有NDK
- android开发 google map
- listview异步下载bitmap内存溢出(OOM)
回10楼,用wifi也行的吧
wifi只能辅助定位,但本身定位作用的还是GPS