Interpretation of Android API 31 Handler mechanism source code
The Handler mechanism is easy for beginners to get confused, but in fact, the content of the source code related to Handler is relatively small and easy to understand. It is still very suitable as the entry point of the source code journey.
To discuss the topic of handler, it is inevitable to mention a question first. What is handler? What is ...
Posted by sryder on Thu, 20 Jan 2022 21:43:09 +0100
Android AOP programming -- AspectJ Syntax & Practice
In the last article Android AOP programming (I) -- AspectJ basic knowledge In, I recorded some basic knowledge of AOP programming using AspectJ in Android, but the most important use of AspectJ is the syntax for the aspect. It is not difficult to find the aspect, but how to write rules to match the aspect. This article mainly records the syntax ...
Posted by dynamicallystatic on Thu, 20 Jan 2022 21:25:10 +0100
Wonderful! Draw lovely weather animation with Jetpack Compose!
1. Project backgroundRecently participated in the ultimate challenge of the Compose challenge and completed a weather app using Compose. I also participated in the previous rounds of challenges and learned a lot of new things every time. Now we are facing the final challenge. We hope to make use of this period of accumulation and make more matu ...
Posted by cgraz on Thu, 20 Jan 2022 11:40:50 +0100
Android Development Notes (180) Use Glide to load special images
Android has added a new image decoder, ImageDecoder, since 9.0, which supports direct reading of graphical data from GIF files and the graphics tool Animatable to display GIF motions on image views. Although GIF animations can be played on the interface through ImageDecoder, the implementation code is bloated on one hand and Android9 on the oth ...
Posted by sayoko on Thu, 20 Jan 2022 09:43:40 +0100
Switch between Flutter themes and flutter redux
redux is mainly composed of Store, Action and ReducerStore is used to store and manage StateAction is a kind of behavior triggered by the userReducer , is used to generate a new , State according to the ActionFluent Redux process1. The Widget binds the "State" data in the "Store" through the "StoreConnector"2. Wi ...
Posted by bluethundr on Thu, 20 Jan 2022 08:30:36 +0100
Android Development: using network technology
Personal notes sorting
Using network technology
Accessing the network using Http
Using HttpURLConnection
// new a Url object
URL url = new URL("http://www.baidu.com");
// new HttpURLConnection new connection
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
// You can set the request mode GET/POST
connection.setReques ...
Posted by Xiphoid8 on Wed, 19 Jan 2022 20:20:10 +0100
Unique identification of Android device (multiple implementation schemes)
preface
During project development, this kind of requirement will be encountered: obtain the unique device ID, which is used to: 1. Identify a unique equipment for accurate data distribution or data statistical analysis; 2. The account number is bound to the device; 3.....
analysis
For such articles, there are many materials on the Interne ...
Posted by Jnerocorp on Wed, 19 Jan 2022 18:59:37 +0100
Kotlin's coordination process starts and cancels the coordination process
Builder of collaborative process
Both the launch and async builders are used to start new processes launch, which returns a job without any result value async returns a Deferred, which is also a job and can be used await() gets its final result on a Deferred value
//Wait for a job: join and await
private fun runBlocking1(){
// ...
Posted by jcornett on Wed, 19 Jan 2022 12:59:40 +0100
Unable to boot due to installing an apk!
The beginning of the storyToday, the boss rushed over and said: xx, please help me see what's wrong with this mobile phone. Suddenly, it can't be turned on.I thought to myself: I haven't mentioned the code recently. It shouldn't be my problem. (throw the pot ~. ~)After plugging the computer into the mobile phone, I saw the following error repor ...
Posted by caramba on Wed, 19 Jan 2022 08:36:16 +0100
An interview was asked about ArrayMap, the principle and source code analysis in detail
1, Foreword
In SparseArray detailed explanation and source code analysis, we are familiar with the basic usage, characteristics and implementation principle of SparseArray. There is also an equally important data structure ArrayMap in the toolkit of the Android SDK. Its purpose is to replace HashMap when the amount of data is small, such as hu ...
Posted by signer on Wed, 19 Jan 2022 07:47:22 +0100