main
lihang_ch01 3 months ago
parent e3f10f7ecd
commit 95e7c2bd23

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="11" />
<bytecodeTargetLevel target="17" />
</component>
</project>

@ -23,6 +23,8 @@
<entry key="..\:/Applacation/Android/RommteStory/app/src/main/res/menu/bottom_nav_menu_main.xml" value="0.3109375" />
<entry key="..\:/Applacation/Android/RommteStory/app/src/main/res/menu/menu_sub.xml" value="0.3109375" />
<entry key="..\:/Applacation/Android/RommteStory/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" value="0.2815" />
<entry key="..\:/Users/23108/Desktop/RommteStory/app/src/main/res/layout/activity_story.xml" value="0.26811594202898553" />
<entry key="..\:/Users/23108/Desktop/RommteStory/app/src/main/res/layout/fragment_mine.xml" value="0.26811594202898553" />
<entry key="..\:/Users/LH/Desktop/android/RommteStory/app/src/main/res/layout/add_memo_activity_layout.xml" value="0.16847826086956522" />
<entry key="..\:/Users/LH/Desktop/android/RommteStory/app/src/main/res/layout/fragment_detail.xml" value="0.15443840579710144" />
<entry key="..\:/Users/LH/Desktop/android/RommteStory/app/src/main/res/layout/fragment_honor.xml" value="0.16847826086956522" />
@ -34,7 +36,7 @@
</map>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

@ -21,9 +21,7 @@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 高德地图Key配置 -->
<meta-data
android:name="com.amap.api.v2.apikey"
android:value="93c4ba27c64acc7adc4f22b3576a345f" />
<meta-data android:name="com.amap.api.v2.apikey" android:value="93c4ba27c64acc7adc4f22b3576a345f"/>
<application
android:name=".MyApplication"

@ -318,8 +318,9 @@ public class MineFragment extends Fragment implements AMapLocationListener, Loca
LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
aMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));
/* // 获取省、市、区信息
// 获取省、市、区信息
String province = location.getProvince();
System.out.println(province);
String city = location.getCity();
String district = location.getDistrict();
@ -348,7 +349,7 @@ public class MineFragment extends Fragment implements AMapLocationListener, Loca
getActivity().runOnUiThread(() -> tvLocation.setText(finalLocationInfo));
} else {
Log.e("Location", "tvLocation is null");
}*/
}
// 通知地图更新蓝点位置
if (mapLocationListener != null) {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save