Continuous update, to be improved

1. Partition storage

Second, background positioning restrictions

3. Restrictions on background activities

Four, dark theme adaptation

Dark theme

Dark theme is available in Android 10 (API level 29) and higher. It has many benefits:

  • Can reduce power usage by a significant amount (depending on the device’s screen technology).
  • Improves visibility for users with low vision and those who are sensitive tobright light.
  • Makes it easier for anyone to use a device in a low-light environment.

Dark theme applies to both the Android system UI and apps running on the device.

There are three ways to enable Dark theme in Android 10 (API level 29) and higher:

  • Use the system setting (Settings -> Display -> Theme) to enable Dark theme.
  • Use the Quick Settings tile to switch themes from the notification tray (once enabled).
  • On Pixel devices, selecting the Battery Saver mode enables Dark theme at the same time. Other OEMs may or may not support this behavior.

The above paragraph on the website describes the benefits of dark themes and how to open them. Suitable for dark theme has the following benefits

  1. Reduce power consumption (depending on the material of the device’s screen, most current OLED screens don’t glow when black)
  2. Low light environment to reduce the screen light on the eye stimulation and injury

Make your app support dark themes

In order for the application to support dark themes, we had to change our theme (res/values/styles.xml) to DayNight.

<style name="AppTheme" parent="Theme.AppCompat.DayNight">
Copy the code

Or use the darker theme of MaterialComponents

<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
Copy the code

Links:

Juejin. Cn/post / 684490…

website

5. Restrictions on obtaining identifiers

Six, folding screen adaptation