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 | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 25405d8..9e9e872 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -73,14 +73,11 @@
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.account.AreaCodeActivity"
android:exported="false" />
<activity
android:name=".ui.me.QrCodeMainActivity"
@@ -218,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" />
@@ -228,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