Android 9.0 source APP startup process

The relevant source path used in this article: Android 9.0 app startup source code 1. Introduction to startup 1.1. Startup process: Click the desktop App icon, and the Launcher process uses Binder IPC to initiate the startActivity request to the system server process; After receiving the request, t ...

Posted by fnbcprog on Sat, 01 Feb 2020 03:50:50 -0800

Event system of View -- event distribution mechanism of View

Time system of View -- event distribution mechanism of View 1. What is event distribution? Complete the whole interaction process by touching the screen with fingers When the user interacts with the mobile phone through the screen, every click, long press, move, etc. is an event Event distribution ...

Posted by boardy on Sat, 01 Feb 2020 00:18:44 -0800

Sword finger Offer reply flow series - rebuild binary tree

Interview question 6: reconstruction of binary tree Title Description: Enter the results of the preorder traversal and inorder traversal of a binary tree, and rebuild the binary tree. It is assumed that the results of the input preorder traversal and preorder traversal do not contain duplicate numbers. For example, input the sequence {1,2,4,7,3 ...

Posted by tsabar on Fri, 31 Jan 2020 16:42:01 -0800

Android custom ListView click event invalid

Because the built-in listview cannot meet the needs of the project, implement its own Adapter to inherit the ArrayAdapter to implement the Item project of the custom listview. Each item that appears and clicks on the ListView will not execute the onItemClick method in the setOnItemClickListener. The reason is that there are some sub controls ...

Posted by phphunger on Fri, 31 Jan 2020 14:57:21 -0800

Third party software for DNS installation of linker Android

Third party software for DNS installation of linker Android Domain name acquisition method Domain name format Key interface Originally, someone on the Internet has set up the corresponding DNS, which is also very convenient to use. Unfortunately, they have to pay dozens of dollars. They have no mo ...

Posted by adrian28uk on Fri, 31 Jan 2020 11:46:51 -0800

Encapsulate a tool to delete useless resource files at will

Encapsulate a tool to delete useless resource files at will Train of thought: Export a txt file with lint log through lint command Filter out all useless resource files by reading the "[UnusedResources]" field in it Files can be deleted directly - drawable-mdpi - drawable-hdpi - drawable-xhdpi ...

Posted by RedDragon on Fri, 31 Jan 2020 09:35:06 -0800

Android native integration React Native

1. Create an empty directory RNDemo 2. Create a subdirectory android in RNDemo 3. Copy the android project to the subdirectory android, as shown in the project structure below. 4. Create the package.json file in RNDemo and add the following contents: { "name": "MyReactNativeApp", "version": "0.0.1", "private": true, "s ...

Posted by Minase on Fri, 31 Jan 2020 09:33:06 -0800

Fresco of Android open source framework

brief introduction Fresco is Facebook's latest powerful image library for displaying pictures in Android applications, which can load pictures from network, local storage and local resources. Compared with image loader, it has many advantages, such as faster image download speed and can load and displ ...

Posted by jmrothermel on Fri, 31 Jan 2020 09:15:26 -0800

Android imitates meituan, a modified version of the suspension effect of the purchase box

Please indicate that this article is from xiaamming's blog( http://blog.csdn.net/xiaanming/article/details/17761431 )Please respect the hard work of others, thank you! I wrote an article about meituan.com, the effect of purchase box in public comments Android monito ...

Posted by linda_v on Fri, 31 Jan 2020 04:33:55 -0800

Apply wakelock tool class AlertWakeLock

1. apply the wake lock tool class AlertWakeLock After the mobile phone is dormant, the application's calculation, timing and download may be dormant due to the CPU, resulting in the application itself unable to receive the message, data and broadcast in time. To solve the problem caused by CPU sleep, we can use hold lock to ke ...

Posted by konnwat on Fri, 31 Jan 2020 00:19:05 -0800