KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
android-location-hight-accuracy
★ 11
Open GitHub ↗
提升定位精度示例
Download README (.md)
Explore Similar Repositories
wp-blank
:
Blank WordPress theme for building custom frontend code
jekyll-pre-commit
:
A Jekyll plugin to make sure your post is _really_ ready for publishing
ipro-cli
:
iproto cli tools
westcache
:
Java annotation based cache, with convenience for cache flush
radio-stream-cli
:
A personal music streaming solution
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
android-location-hight-accuracy
?
Download (.md)
# android-location-hight-accuracy 提升定位精度示例 ## 前述 ## - [高德官网申请Key](http://lbs.amap.com/dev/#/). - 阅读 [定位SDK参考手册](http://a.amap.com/lbs/static/unzip/Android_Location_Doc/index.html). - 工程基于高德定位SDK实现 ## 使用方法## ###1:配置搭建AndroidSDK工程### - [Android Studio工程搭建方法](http://lbs.amap.com/api/android-sdk/guide/creat-project/android-studio-creat-project/#add-jars). - [通过maven库引入SDK方法](http://lbsbbs.amap.com/forum.php?mod=viewthread&tid=18786). ## 扫一扫安装##  ## 定位结果展示##  ## 核心类/接口 ## | 类 | 接口 | 说明 | 版本 | | -----|:-----:|:-----:|:-----:| |AMapLocationClientOption| setLocationMode()|设置定位模式|V2.0.0| ## 核心难点## ```java //打开系统wifi设置界面 Intent intent = new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS); startActivity(intent); // 打开系统设置界面 //设置高精度模式 private AMapLocationClientOption getDefaultOption() { AMapLocationClientOption mOption = new AMapLocationClientOption(); mOption.setLocationMode(AMapLocationClientOption.AMapLocationMode.Hight_Accuracy); return mOption; } ```