BrocastReceiver process details
Registration of broadcasts is divided into static registration and dynamic registration. Static registration configures the receiver node in the xml and parses the xml file after the application starts. The specific registration process is handled by the PackagerManagerService. This article focuses on the dynamic registration of broadcasts, i.e ...
Posted by harman on Sat, 04 Dec 2021 09:42:02 -0800
OkHttp usage details
Today I learned OkHttp and made a summary here. I hope it can help people in need. Well, don't talk more nonsense and get to the point.1, OkHttp introductionOkHttp is an excellent network request framework. When it comes to network request framework, many people may think of volley. Volley is a network request framework provided by Google. My b ...
Posted by jpratt on Fri, 03 Dec 2021 15:11:37 -0800
asm implements annotation printing log
preface
In Android development, sometimes debugging problems add a lot of logs to the method, which is very troublesome. Therefore, in combination with asm, the log is automatically inserted into the method by annotation, so as to facilitate debugging during development. Of course, the log inserted through asm should contain the method paramet ...
Posted by cobnut on Fri, 03 Dec 2021 12:09:28 -0800
Android DataBinding from the beginning to the advanced level, read this article is enough
prefaceDataBinding is a framework officially released by Google. As its name suggests, it is data binding. It is an implementation of MVVM mode on Android. It is used to reduce the coupling between layout and logic and make the code logic clearer. Compared with MVP, MVVM actually replaces the Presenter layer with the ViewModel layer. DataBindin ...
Posted by scuff on Fri, 03 Dec 2021 04:53:22 -0800
OkHttp usage details
Today I learned OkHttp and made a summary here. I hope it can help people in need. Well, don't talk more nonsense and get to the point.
1, OkHttp introduction
OkHttp is an excellent network request framework. When it comes to network request framework, many people may think of volley. Volley is a network request framework provided by Goo ...
Posted by sitorush on Fri, 03 Dec 2021 03:34:11 -0800
Android CameraX combines LibYUV and GPUImage to customize camera filters
Author: itfitness link: https://www.jianshu.com/p/f08...Contents of this document:prefacePreviously, a user-defined Camera filter (Android user-defined Camera filter) was implemented with Camera, but it ran a little stuck. This time, Camerax was used to achieve the same effect, which was found to be very smooth. I hope it can help students in n ...
Posted by FuzziNectar on Fri, 03 Dec 2021 00:17:49 -0800
Rxjava thread switching principle
preface
Rxjava can easily switch threads, so how does rxjava switch threads? Read this article to learn how rxjava performs thread switching and the impact of thread switching.
A simple code:
Observable.create(new ObservableOnSubscribe<String>() {
@Override
public void subscribe(ObservableEmitter<String> e) throws Excep ...
Posted by Ruchi on Thu, 02 Dec 2021 13:31:04 -0800
SeetaFace2 Android platform compilation
SeetaFace2 Android platform compilation
Project address: https://github.com/seetafaceengine/SeetaFace2
SeetaFace2 face recognition engine includes three core modules required to build a full-automatic face recognition system, namely: face detection module FaceDetector, face key point positioning module facelandmark and face feature extraction ...
Posted by iskawt on Wed, 01 Dec 2021 15:02:49 -0800
The past and present life of LiveData
In this series, I translated a series of articles written by the developers of collaborative process and Flow, in order to understand the reasons for the current design of collaborative process, Flow and LiveData, find their problems from the perspective of designers and how to solve them. pls enjoy it.This article is the first to analyze the r ...
Posted by vladj on Wed, 01 Dec 2021 13:31:57 -0800
Android technology sharing ViewPager2 off screen loading, to achieve tiktok video slide
A tiktok effect similar to the small and small sliding of the video is needed. So called preloading,
When the current page is displayed, the content behind the current page needs to be loaded in advance to ensure that the user slides to the next video,
It can reduce the waiting time and browse smoothly at normal network speed.
In the fourth ver ...
Posted by bodge on Wed, 01 Dec 2021 00:44:10 -0800