http://note.youdao.com/share/web/file.html?id=611b9b6bdf9abafbb1ee45436f50be9e&type=note
posted @ 2015-09-18 21:04 Kevin Meng 閱讀(227) | 評論 (0) | 編輯 收藏
posts - 119, comments - 62, trackbacks - 0, articles - 0 |
|
http://note.youdao.com/share/web/file.html?id=611b9b6bdf9abafbb1ee45436f50be9e&type=note posted @ 2015-09-18 21:04 Kevin Meng 閱讀(227) | 評論 (0) | 編輯 收藏 每次都在setupconnection...的地方停住了,后來在發現原來是因為我的手機沒有插SD卡,憤的??!
posted @ 2015-08-10 23:15 Kevin Meng 閱讀(196) | 評論 (0) | 編輯 收藏 geoJOSN為UTF-8編碼,轉成shp后部分字段出現亂碼,一直找不到解決的辦法。后來裝了QGIS 1.7.4,打開geoJSON文件,注意選擇編碼為UTF-8,然后save as..,保存成shp文件,此時編碼必須選擇system就可以解決中文亂碼的問題了。
posted @ 2012-10-22 11:53 Kevin Meng 閱讀(1490) | 評論 (0) | 編輯 收藏 posted @ 2012-08-15 12:52 Kevin Meng 閱讀(262) | 評論 (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 閱讀(337) | 評論 (0) | 編輯 收藏 |
|