Browse Source

腕表应用设置为常驻内存模式

weizhengliang 10 months ago
parent
commit
819375c14e

+ 1 - 0
app/src/main/AndroidManifest.xml

@@ -35,6 +35,7 @@
         android:label="@string/wdkl_app_name"
         android:label="@string/wdkl_app_name"
         android:supportsRtl="true"
         android:supportsRtl="true"
         tools:replace="android:label"
         tools:replace="android:label"
+        android:persistent="true"
         android:requestLegacyExternalStorage="true"
         android:requestLegacyExternalStorage="true"
         android:name="com.wdkl.app.ncs.application.Application"
         android:name="com.wdkl.app.ncs.application.Application"
         android:theme="@style/MyAppTheme">
         android:theme="@style/MyAppTheme">

+ 1 - 0
app/src/main/sharedUserId/AndroidManifest.xml

@@ -35,6 +35,7 @@
         android:requestLegacyExternalStorage="true"
         android:requestLegacyExternalStorage="true"
         android:name="com.wdkl.app.ncs.application.Application"
         android:name="com.wdkl.app.ncs.application.Application"
         android:sharedUserId="android.uid.system"
         android:sharedUserId="android.uid.system"
+        android:persistent="true"
         android:extractNativeLibs="true"
         android:extractNativeLibs="true"
         android:theme="@style/MyAppTheme">
         android:theme="@style/MyAppTheme">
         <meta-data
         <meta-data