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 | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e5e8931..9e9e872 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -73,9 +73,12 @@ android:icon="@drawable/desktop_logo" android:label="@string/app_name" android:requestLegacyExternalStorage="true" - android:roundIcon="@drawable/desktop_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" /> @@ -174,8 +177,7 @@ <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- 娉ㄥ唽鏈嶅姟 --> - <service android:name=".internet.HttpServer.MyNanoHttpService" /> - <!-- 鍔犲畠uniapp鎵嶈兘鍞よ捣鐩告満 --> + <service android:name=".internet.HttpServer.MyNanoHttpService" /> <!-- 鍔犲畠uniapp鎵嶈兘鍞よ捣鐩告満 --> <provider android:name="io.dcloud.common.util.DCloud_FileProvider" android:authorities="com.hdl.photovoltaic.dc.fileprovider" @@ -213,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" /> @@ -223,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