package com.bw.Movie.activity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.ImageView; import android.widget.Toast; import com.amap.api.location.AMapLocation; import com.amap.api.location.AMapLocationClient; import com.amap.api.location.AMapLocationClientOption; import com.amap.api.location.AMapLocationListener; import com.amap.api.maps.AMap; import com.amap.api.maps.CameraUpdateFactory; import com.amap.api.maps.LocationSource; import com.amap.api.maps.MapView; import com.amap.api.maps.UiSettings; import com.amap.api.maps.model.LatLng; import com.bw.Movie.R; import com.bw.Movie.bean.AdressBean; import org.greenrobot.eventbus.EventBus; import java.text.SimpleDateFormat; import java.util.Date; public class AdressActivity extends AppCompatActivity implements AMapLocationListener, LocationSource { private MapView mMap; AMapLocationClient mLocationClient; AMapLocationClientOption mLocationOption; OnLocationChangedListener mListener; boolean isFirstLoc = true; AMap aMap; private ImageView mBack; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_adress); // initView(); mMap = (MapView) findViewById(R.id.map); //在activity执行onCreate时执行mMapView.onCreate(savedInstanceState)
继承高德地图 如何运用 代码获取经纬等设置
最新推荐文章于 2022-03-03 10:45:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)