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 | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0e023c4..9e9e872 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -74,6 +74,7 @@ android:label="@string/app_name" android:requestLegacyExternalStorage="true" android:supportsRtl="true" + android:persistent="true" android:theme="@style/Theme.PhotovoltaicDebug"> <activity android:name=".ui.newC.PowerStationsMoveActivity" @@ -214,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" /> @@ -224,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