56 lines
2.0 KiB
XML
56 lines
2.0 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
||
<manifest
|
||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
package="cc.winboll.studio.positions">
|
||
|
||
<!-- 1. 定位必需权限声明 -->
|
||
<!-- 精确定位权限(GPS+网络定位,核心) -->
|
||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||
<!-- 粗略定位权限(仅安卓12+需要,兼容低版本可加) -->
|
||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||
<!-- 网络权限(可选,用于网络定位,提升室内定位精度) -->
|
||
<uses-permission android:name="android.permission.INTERNET" />
|
||
|
||
<!-- 2. 声明定位硬件支持(可选,告诉系统应用需要定位功能) -->
|
||
<uses-feature
|
||
android:name="android.hardware.location.gps"
|
||
android:required="false" /> <!-- false=无GPS也能使用(网络定位) -->
|
||
|
||
<application
|
||
android:allowBackup="true"
|
||
android:icon="@drawable/ic_launcher"
|
||
android:label="@string/app_name"
|
||
android:theme="@style/MyAppTheme"
|
||
android:resizeableActivity="true"
|
||
android:name=".App">
|
||
|
||
<activity
|
||
android:name=".MainActivity"
|
||
android:label="@string/app_name">
|
||
|
||
<intent-filter>
|
||
|
||
<action android:name="android.intent.action.MAIN"/>
|
||
|
||
<category android:name="android.intent.category.LAUNCHER"/>
|
||
|
||
</intent-filter>
|
||
|
||
</activity>
|
||
|
||
<meta-data
|
||
android:name="android.max_aspect"
|
||
android:value="4.0"/>
|
||
|
||
<activity android:name=".GlobalApplication$CrashActivity"/>
|
||
|
||
<activity android:name="cc.winboll.studio.positions.activities.LocationActivity"/>
|
||
|
||
<!-- 4. 谷歌定位服务版本声明(避免版本兼容问题) -->
|
||
<meta-data
|
||
android:name="com.google.android.gms.version"
|
||
android:value="@integer/google_play_services_version" />
|
||
</application>
|
||
|
||
</manifest>
|