Platform: T507 System: Android 10.0 T507 Android system version is Android 10.0, and SELinux is enabled by default. SELinux based on MAC access control model can better protect our Android system, such as limiting the access rights of system services and controlling the access of applications to data and system logs, which reduces the impact of ...
Posted on Thu, 02 Dec 2021 23:58:17 -0500 by brauchi
The upper layer of Android provides some memory sharing tool classes, such as MemoryFile. Have you ever used it? Do you know how it works?MemoryFile is a Java layer encapsulation of Ashmem. Let's learn MemoryFile and master its usage posture and underlying principle.MemoryFile can be used as follows:"In process A, apply for A piece of shar ...
Posted on Thu, 02 Dec 2021 21:51:36 -0500 by Loran
Introduction and use of SurfaceViewSurfaceView is a special view in Android system. It has a separate drawing surface, that is, it does not share the same drawing surface with the host window. Because it has an independent drawing surface, the UI of SurfaceView can be drawn in an independent thread. Because it will not occupy the resources of t ...
This paper mainly describes the source code analysis of Retrofit. Combined with the personal summary structure diagram and the Retrofit source code, it can help to understand the internal structure of Retrofit to a great extent
2. Retrofit structure Preview
This is the structure diagram I sorted out after reading the source code f ...
Posted on Thu, 02 Dec 2021 15:39:30 -0500 by domainshuffle
1. What is the activity
An activity is a component that can contain a user interface and is mainly used to interact with users. An application can contain zero or more activities, but applications that do not contain any activities are rare.
2. Basic usage of activities
2.1. Create activities
public class MainActivity extends AppCompatActiv ...
Posted on Thu, 02 Dec 2021 13:55:45 -0500 by popcop
SeetaFace2 Android platform compilation
Welcome to join the group
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 facela ...
One, Customize View Foundation:1, Brush PaintText correlation:MethoddescribesetColor(@ColorInt int color)setpcsetStrokeWidth(float width)Set Brush ThicknesssetTextSkewX(float f)Set slant, negative right slant, positive leftsetARGB(int a, int r, int g, int b)Set color, a for transparencysetTextSize(float textSize)Set Drawing Text SizesetFakeBold ...
Posted on Wed, 01 Dec 2021 13:14:18 -0500 by jazz_snob
1. Obtain the scan code of the key
1. getevent displays three valid information in the result:
3.KeyLayoutFile --> .kl
kl file format simple analysis (detailed explanation and other use methods, self search):
Take the two buttons o ...
Posted on Wed, 01 Dec 2021 07:16:39 -0500 by Visualant
1, camera startAn activity starts the calling process: onCreate()-->onStart()-->onResume()
onCreate(): 1. You can add the required layout file and draw the interface. 2. Start the thread, start the hardware camera, and call CameraHolder.instance().open() to get an android.hardwareCamera Example: mCameraDevice ...
Posted on Tue, 30 Nov 2021 22:17:19 -0500 by firecat318
Why full burial?Buried points in the past manual formIn the past, the buried points were artificially defined and selectively buried. The number of buried points continued to increase after multiple version iterations.*Calling basically the same code in each code block is highly intrusive. If you replace the SDK later, you may make a lot of cha ...
Posted on Tue, 30 Nov 2021 18:47:39 -0500 by fesan