Actual combat | integrate Android biometric authentication into applications

This is the second article in the Android biometric authentication series, Last article By comparing the traditional authentication methods of user name and password with biometric authentication methods, and introducing different encryption methods of biometric encryption, this paper shows developers why biometric authentication technology n ...

Added by brij_theinvader on Sun, 21 Nov 2021 01:14:11 +0200

android_ Optimize_ Layout optimization (merge)

Objective: to reduce the number of layout layers Effect: reduce the number of nodes in the view tree, speed up the drawing of the view, and improve the UI performance# When to use: The child view does not need to specify any layout properties for the parent viewIf you need to embed a layout (or view) in LinearLayout, and the root node of this ...

Added by chriskl on Sat, 20 Nov 2021 16:52:00 +0200

Introduction and verification of Dagger2 dependency injection singleton

Business component instantiation actually has a large number of application scenarios in enterprise applications. In enterprise applications, the overhead on the JVM under the scenario of frequent creation and destruction of object instances can be unimaginable. Instantiation can reduce the burden of JVM memory management and improve applicatio ...

Added by devain on Sat, 20 Nov 2021 16:29:50 +0200

Java reflection and utilization

Author: SakuraUnique Disclaimer: This article is only for study and research. It is strictly prohibited to engage in illegal activities. Any consequences shall be borne by the user himself. 0x00 Preface Reflection can be said to be Java It is the most powerful technology in. It can do too many things. Many excellent open source frameworks a ...

Added by phpfreak101 on Sat, 20 Nov 2021 13:18:12 +0200

Flutter updates the installation package in the App and tears the interviewer by hand

3. With local version For information comparison, select whether to display the update pop-up window. We use event\_bus trigger if (localVersion == remoteVersion) return;eventManager.eventBus.fire(new UpdateAppEvent(versionInfo)); 4. When upgrading the version, pay attention to the difference Android And IOS (1) IOS to update app ...

Added by Archangel915 on Sat, 20 Nov 2021 10:35:25 +0200

Android - page switching, Daniel will teach you

(4)singleInstance: an Activity stack will be created separately; 8. Optimization of program lock Put the variables created every time in the while loop outside the loop and create them only once //Before modification while(flag){ List<RunningTaskInfo> infos = am.getRunningTasks(1000); String packname = infos.get(0).topAct ...

Added by The_Walrus on Sat, 20 Nov 2021 04:34:50 +0200

5, ContentProvider permission dynamic application address book addition, deletion, modification and query

5, ContentProvider related ContentProvider: content provider is responsible for data access. It is often used for APP data sharing, cross process data access, etc... for example, reading photo albums and contacts are implemented by ContentProvider **1. * * we want to access other applications in our own applications, or some data expo ...

Added by Imad on Fri, 19 Nov 2021 14:58:18 +0200

gradle packaging script

gradle packaging script 1. Different closure meanings defaultConfig{} Default configuration, yes ProductFlavor Type. Share it with others ProductFlavor use sourceSets{ } Source file directory settings, yes AndroidSourceSet Type. buildTypes{ } BuildType type signingConfigs{ } Signature configuration, SigningConfig type productFlavors{ } Produc ...

Added by duelist on Fri, 19 Nov 2021 07:15:17 +0200

Android Getting Started tutorial | introduction to SharedPreferences

Sometimes we want to store some data in the application. For example, some configuration information. For example, it stores data such as int, float, boolean and string.Writing files can be cumbersome. You need to read and write files and define the data storage structure. For these simple data, we can use shared preferences (hereinafter referr ...

Added by Leonardo Dantas on Thu, 18 Nov 2021 13:04:20 +0200

HandlerThread source code analysis

HandlerThread is familiar to everyone. From the name, it is a Thread with Handler message loop mechanism. It has more message loop mechanism than ordinary threads. It can be said that it is a combination of Handler+Thread. From the source code, it is also designed in this way. Generally, if it is necessary to interact between sub threads and ma ...

Added by akeane on Wed, 17 Nov 2021 03:44:09 +0200