posts - 119, comments - 62, trackbacks - 0, articles - 0

2012年8月7日

http://note.youdao.com/share/web/file.html?id=611b9b6bdf9abafbb1ee45436f50be9e&type=note

posted @ 2015-09-18 21:04 Kevin Meng 阅读(212) | 评论 (0)编辑 收藏

每次都在setupconnection...的地方停住了,后来在发现原来是因为我的手机没有插SD卡,愤的!!

posted @ 2015-08-10 23:15 Kevin Meng 阅读(186) | 评论 (0)编辑 收藏

geoJOSN为UTF-8编码,转成shp后部分字段出现乱码,一直找不到解决的办法。后来装了QGIS 1.7.4,打开geoJSON文件,注意选择编码为UTF-8,然后save as..,保存成shp文件,此时编码必须选择system就可以解决中文乱码的问题了。

posted @ 2012-10-22 11:53 Kevin Meng 阅读(1453) | 评论 (0)编辑 收藏

http://huangqiqing123.iteye.com/blog/1246882 

posted @ 2012-08-15 12:52 Kevin Meng 阅读(241) | 评论 (0)编辑 收藏

以下的GPS定位代码,在MOTO XT800,ME811,HTC S610d等手机中定位都没有问题,但是在MOTO XT882里面就是无法定位,后来发现问题出现在红色的代码部分,强制改成GPS定位就可以了。
      locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
      Criteria criteria = new Criteria();
      criteria.setAccuracy(Criteria.ACCURACY_FINE);
      criteria.setAltitudeRequired(false);
      criteria.setBearingRequired(false);
      criteria.setCostAllowed(true);
      criteria.setPowerRequirement(Criteria.POWER_LOW);
      String provider = locationManager.getBestProvider(criteria, true);
      /* 每隔1000ms更新一次,并且不考虑位置的变化。 */
      locationManager.requestLocationUpdates(provider, 3000, 5, locationListener);
      //强制使用GPS定位
      //locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 3000, 5, locationListener);

posted @ 2012-08-07 20:59 Kevin Meng 阅读(323) | 评论 (0)编辑 收藏