摘要: 客户需要跟踪运单信息,决定采用gps和 基站定位。经过几天的折腾,已粗见成效,以下为示例代码:locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); // 创建LocationManager对象provider = locationManager.getBestProvider(getCriteria(), true); // 设置查询条件,返回定位方式,默认为GPS定位//设置监听locationListener = new LocationListener() { ... 阅读全文
posted @ 2013-01-26 12:23 大匪猫 阅读(660) 评论(0) 推荐(1) 编辑