百度location

上传者: tianli900829 | 上传时间: 2021-05-25 22:31:07 | 文件大小: 951KB | 文件类型: ZIP
sDk
package xgpushdemo.qt.an.appmap; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.baidu.location.BDLocation; import com.baidu.location.BDLocationListener; import com.baidu.location.LocationClient; import com.baidu.location.LocationClientOption; import com.baidu.mapapi.SDKInitializer; import com.baidu.mapapi.map.BaiduMap; import com.baidu.mapapi.map.MapView; import com.baidu.mapapi.map.MyLocationData; /*** * 百度定位、导航 * */ public class MainActivity extends Activity { private Button clickbtn; private TextView txt1; private TextView txt2; private MapView mMapView = null; private BaiduMap mBaiduMap=null; //定位相关申明 private LocationClient locationClient; //是否第一次定位 private Boolean isFirstloc=true; //是否开启 private Boolean isStart=true; private String la; private String lo; private String city; public BDLocationListener myListener=new BDLocationListener() { @Override public void onReceiveLocation(BDLocation bdLocation) { if(bdLocation==null||mMapView==null) return; MyLocationData myLocationData= new MyLocationData.Builder().accuracy(bdLocation.getRadius()).direction(100). latitude(bdLocation.getLatitude()).longitude(bdLocation.getLongitude()).build(); mBaiduMap.setMyLocationData(myLocationData); city= bdLocation.getCity(); la=bdLocation.getLatitude()+""; lo=bdLocation.getLongitude()+""; // if(isFirstloc){ // isFirstloc=false; // LatLng ll=new LatLng(bdLocation.getLatitude(),bdLocation.getLongitude()); // MapStatusUpdate mapStatusUpdate= MapStatusUpdateFactory.newLatLngZoom(ll,16); // mBaiduMap.animateMapStatus(mapStatusUpdate); // } } };

文件下载

资源详情

[{"title":"( 31 个子文件 951KB ) 百度location","children":[{"title":"BaiduMap_AndroidPanoramaSDK_v2.1.0_Sample","children":[{"title":".project <span style='color:#111;'> 852B </span>","children":null,"spread":false},{"title":"bin","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"lint.xml <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"IndoorscapeAlbumPlugin.jar <span style='color:#111;'> 20.10KB </span>","children":null,"spread":false},{"title":"armeabi","children":[{"title":"libapp_BaiduPanoramaAppLib.so <span style='color:#111;'> 365.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"BaiduLBS_Android.jar <span style='color:#111;'> 152.05KB </span>","children":null,"spread":false},{"title":"android-support-v4.jar <span style='color:#111;'> 606.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"baidu","children":[{"title":"lbsapi","children":[{"title":"panodemo","children":[{"title":"PanoDemoActivity.java <span style='color:#111;'> 4.75KB </span>","children":null,"spread":false},{"title":"PanoDemoApplication.java <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"PanoDemoMain.java <span style='color:#111;'> 17.45KB </span>","children":null,"spread":false},{"title":"PanoDemoCoordinate.java <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"styles.xml <span style='color:#111;'> 680B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 856B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"panodemo.xml <span style='color:#111;'> 725B </span>","children":null,"spread":false},{"title":"panodemo_main.xml <span style='color:#111;'> 6.46KB </span>","children":null,"spread":false},{"title":"panodemo_coordinate.xml <span style='color:#111;'> 6.81KB </span>","children":null,"spread":false},{"title":"panodemo_list_item.xml <span style='color:#111;'> 796B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":null,"spread":false},{"title":"drawable","children":[{"title":"button_style.xml <span style='color:#111;'> 338B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 26.67KB </span>","children":null,"spread":false},{"title":"button_on.9.png <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"button_down.9.png <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"street_arrow.png <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"icon_markb.png <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"icon_marka.png <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"baidu","children":[{"title":"lbsapi","children":[{"title":"panodemo","children":[{"title":"R.java <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"BuildConfig.java <span style='color:#111;'> 167B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • XiongRx :
    谢谢分享,
    2018-10-23
  • Bug集锦 :
    谢谢分享,下载了
    2018-08-30
  • chk0812 :
    谢谢分享,有用,不错。
    2017-03-07

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明