管灌系统巡查员智能手机App
zuoxiao
2024-09-24 45e69852f43abe0f79967786ada3c7cf887b5b48
app/src/main/AndroidManifest.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">
    xmlns:tools="http://schemas.android.com/tools"
    package="com.dayu.pipirrapp">
    <!--允许访问网络,必选权限-->
    <uses-permission android:name="android.permission.INTERNET" />
@@ -52,41 +53,47 @@
        <activity
            android:name=".activity.MainActivity"
            android:exported="true">
            android:exported="true"
            android:launchMode="singleTop">
        </activity>
        <activity android:name=".activity.ChangePSActivity" />
        <activity
            android:name=".activity.LoginActivity"
            android:exported="true"
            android:launchMode="singleTop">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".activity.ChangePSActivity" />
        <!--        <activity android:name=".activity.MainActivity" />-->
        <!-- Required since 5.2.0 -->
        <!-- 新的 tag/alias 接口结果返回需要开发者配置一个自定义的Service -->
        <!-- 3.3.0开始所有事件将通过该类回调 -->
        <!-- 5.2.0开始所有事件将通过该类回调 -->
        <!-- 该广播需要继承 JPush 提供的 JPushMessageService 类, 并如下新增一个 Intent-Filter -->
        <service
            android:name=".service.PushService"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.SERVICE_MESSAGE" />
                <category android:name="com.dayu.pipirrapp" />
            </intent-filter>
        </service>
        <!--        <service-->
        <!--            android:name=".service.PushService"-->
        <!--            android:enabled="true"-->
        <!--            android:exported="false">-->
        <!--            <intent-filter>-->
        <!--                <action android:name="cn.jpush.android.intent.SERVICE_MESSAGE" />-->
        <!--                <category android:name="com.dayu.pipirrapp" />-->
        <!--            </intent-filter>-->
        <!--        </service>-->
        <!-- Since JCore2.0.0 Required SDK核心功能-->
        <!-- 可配置android:process参数将Service放在其他进程中;android:enabled属性不能是false -->
        <!-- 这个是自定义Service,要继承极光JCommonService,可以在更多手机平台上使得推送通道保持的更稳定 -->
        <service
            android:name=".service.MyCommonService"
            android:enabled="true"
            android:exported="false"
            android:process=":pushcore">
            <intent-filter>
                <action android:name="cn.jiguang.user.service.action" />
            </intent-filter>
        </service>
        <!--        <service-->
        <!--            android:name=".service.MyCommonService"-->
        <!--            android:enabled="true"-->
        <!--            android:exported="false"-->
        <!--            android:process=":pushcore">-->
        <!--            <intent-filter>-->
        <!--                <action android:name="cn.jiguang.user.service.action" />-->
        <!--            </intent-filter>-->
        <!--        </service>-->
        <service
            android:name=".service.MyLocationService"
@@ -95,13 +102,13 @@
        <!--百度定位-->
<!--        <meta-data-->
<!--            android:name="com.baidu.lbsapi.API_KEY"-->
<!--            android:value="Ky5wvrB9A9Rztsh3rQO8v8oNRgQM27NV"></meta-data>-->
<!--        <service-->
<!--            android:name="com.baidu.location.f"-->
<!--            android:enabled="true"-->
<!--            android:process=":remote"></service>-->
        <!--        <meta-data-->
        <!--            android:name="com.baidu.lbsapi.API_KEY"-->
        <!--            android:value="Ky5wvrB9A9Rztsh3rQO8v8oNRgQM27NV"></meta-data>-->
        <!--        <service-->
        <!--            android:name="com.baidu.location.f"-->
        <!--            android:enabled="true"-->
        <!--            android:process=":remote"></service>-->
    </application>