From 819940c20dfb8a0c797b3423a3c0a0c67c9fd955 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期五, 27 十二月 2024 18:06:23 +0800 Subject: [PATCH] 处理后台运行被释放的问题 --- app/src/main/AndroidManifest.xml | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8728e5e..9e9e872 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -70,12 +70,15 @@ <application android:name=".HDLApp" android:allowBackup="true" - android:icon="@drawable/logo" + android:icon="@drawable/desktop_logo" android:label="@string/app_name" android:requestLegacyExternalStorage="true" - android:roundIcon="@drawable/logo" android:supportsRtl="true" + android:persistent="true" android:theme="@style/Theme.PhotovoltaicDebug"> + <activity + android:name=".ui.newC.PowerStationsMoveActivity" + android:exported="false" /> <activity android:name=".ui.me.QrCodeMainActivity" android:exported="false" /> @@ -155,7 +158,7 @@ android:name=".ui.account.RegisterAccountActivity" android:exported="false" /> <activity - android:name=".ui.device.FastScanActivity" + android:name=".ui.device.ScanActivity" android:exported="false" /> <activity android:name=".ui.BPowerStationActivity" @@ -166,7 +169,8 @@ <activity android:name=".widget.apkwgtupload.AndroidPermissionActivity" /> <activity android:name=".ui.StartActivity" - android:exported="true"> + android:exported="true" + android:theme="@style/AppWelcome"> <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -211,6 +215,15 @@ android:name="org.eclipse.paho.android.service.MqttService" android:exported="false" /> + <service + android:name=".services.UniappService" + android:enabled="true" + android:exported="true"> + <intent-filter> + <action android:name="UniappService.ACTION" /> + </intent-filter> + </service> + <meta-data android:name="design_height_in_dp" android:value="812" /> @@ -221,5 +234,7 @@ android:name="ScopedStorage" android:value="true" /> </application> - + <queries> + <package android:name="com.hdl.photovoltaic.services"/> + </queries> </manifest> \ No newline at end of file -- Gitblit v1.8.0