Several implementation methods of Android system shutdown or restart

The default SDK does not provide an API interface for application developers to directly shut down or restart the Android system. Generally speaking, high permissions (system permissions or even Root permissions) are required to shut down or restart the Android system. Therefore, in general apps, if you want to realize the shutdown or restart f ...

Added by leon_zilber on Sat, 12 Feb 2022 11:11:57 +0200

Glide source code analysis and three-level cache principle

Glide is an open source image loading library for Android, which can help us download, cache and display images in various formats. It is also one of the mainstream image loading frameworks. How to realize the internal source code? Explain the main process and make a brief analysis. The usage is as follows: Glide.with(context).load(url).into ...

Added by ikon on Sat, 12 Feb 2022 10:26:38 +0200

Glide source code analysis and three-level cache principle

Glide is an open source image loading library for Android, which can help us download, cache and display images in various formats. It is also one of the mainstream image loading frameworks. How to realize the internal source code? Explain the main process and make a brief analysis. The usage is as follows: Glide.with(context).load(url).into ...

Added by Far Cry on Sat, 12 Feb 2022 09:47:41 +0200

Brief analysis of Android TIF key processing flow

Android TIF provides manufacturers with a standard API for creating input modules that can control Android TV and allow them to search and recommend live TV content through metadata published by TV Input. For specific introduction, please refer to official documents TV Input Framework | Android Open Source Project (google.cn) The key processin ...

Added by spookztar on Sat, 12 Feb 2022 07:29:01 +0200

Quick start, flying safety

Introduction In Flutter 2.0, an important upgrade is that Dart supports empty security. Alex has carefully translated many articles on air security for us: migration guide, in-depth understanding of air security, etc. through the migration guide, I will also use fps_monitor migration empty security. But after adapting the project, how should w ...

Added by DrFishNips on Sat, 12 Feb 2022 07:13:06 +0200

android custom view draw a clock

In this article, we will customize a View to implement a clock. Let's take a look at the rendering first. Here is just a static picture. In fact, the second hand is moving. As for other effects, you can add them on your own. 1. Attribute setting Create a new file attrs. In the res/values directory XML, in which we will define the attributes r ...

Added by Jtech on Sat, 12 Feb 2022 04:15:02 +0200

Crack down on project corruption | proguard control

Author: Liu Tianyu (Qian Feng) Engineering corruption is a very difficult problem in the process of app iteration, involving extensive and detailed details, which has a relatively "hidden" and indirect impact on R & D Efficiency & experience, Engineering & product quality, stability, package size and performance. Gen ...

Added by sig on Sat, 12 Feb 2022 01:20:45 +0200

MVVM mode of Android architecture mode

Introduction to MVVM mode MVVM pattern is composed of View layer, ViewModel layer and Model layer. The View layer controls the layout and appearance The Model layer is to obtain the business data Model ViewModel is responsible for processing business logic and data in View In MVVM mode, we no longer need to use findviewbyid and other methods ...

Added by spikypunker on Fri, 11 Feb 2022 14:50:35 +0200

[Android advanced notes] Hot fix (code, resources, dynamic link library)

1. Thermal repair 1.1. effect Serious bugs need to be solved immediately without repackaging and putting on the shelf.Solve the problem that the version upgrade rate is not high, and the Bug will always affect users who do not upgrade the version.Realize short-term version coverage of small functions, such as festival activities. 1. ...

Added by ValdouaD on Fri, 11 Feb 2022 13:17:27 +0200

Collection ~ how does Dropbox solve the memory leak problem of Android App?

A memory leak occurs when an application allocates memory for an object and the object is not released when it is no longer used. Over time, the leaked memory will accumulate, resulting in poor application performance or even crash. Leaks can occur on any program and platform, but due to the complexity of the activity life cycle, this situation ...

Added by Aeolus on Fri, 11 Feb 2022 08:12:00 +0200