An Android Demo using APT + bytecode instrumentation to optimize code design
This article, in the form of a Demo, describes the use of APT and bytecode instrumentation, and how to use them to optimize code design.
1, Introduction of Demo
1.1 requirements description
Assuming that there is such a scenario, we have an application to display various cards, including CNACard and CNBCard, which are only displayed at home, ...
Posted by nfr on Fri, 03 Dec 2021 06:47:50 +0100
The data store and SharedPreferences terminator are parsed in the most detail in the whole network
/ DataStore introduction /Jetpack DataStore is an improved new data storage solution that allows the use of protocol buffers to store key value pairs or typed objects.DataStore stores data in an asynchronous and consistent transaction mode, which overcomes some shortcomings of shared preferences (hereinafter collectiv ...
Posted by poncho4u on Fri, 03 Dec 2021 06:38:47 +0100
Android Content provider component
Content Provider is one of the components of Android applications. As the only way to share data between applications, the main function of Content Provider is to store and retrieve data and provide excuses for other applications to access data.The Android system has built-in a series of content providers for some common data types (such as mus ...
Posted by EOS on Wed, 01 Dec 2021 10:56:40 +0100
In depth analysis of Qianlima android binder - native layer connecting the preceding and the following (client part)
csdn online learning course, course consultation and Q & A and new course information: QQ communication group: 422901085 for course discussion
android cross process communication practice video course (add group to get preferential) I believe you should be familiar with the above diagram of binder cross process communication. There are fo ...
Posted by samsbox on Tue, 30 Nov 2021 16:44:08 +0100
In depth source code analysis of Android plug-in principle
preface
Plug in technology originated from the idea of running apk without installation. This apk without installation can be understood as a plug-in, and the app supporting plug-ins is generally called host. The host can load and run plug-ins at runtime, so that some infrequent functional modules in the app can be made into plug-ins. On the o ...
Posted by soloslinger on Tue, 30 Nov 2021 14:05:29 +0100
17 Composer best practices you must know (updated to 22)
This is a community collaborative translation article. The translation has been completed. For more information, please click Introduction to collaborative translation . Although most PHP developers know how to use Composer, not everyone is using it effectively or in the best way. So I decided to summarize something important to my daily workfl ...
Posted by cherubrock74 on Mon, 29 Nov 2021 13:46:53 +0100
On the recording and playing process of audio in webrtc
preface
This article is based on the PineAppRtc project github.com/thfhongfeng...
In webrtc, the recording and playing of audio are encapsulated inside. Generally, we don't need to pay attention to it. We can use it directly.
But recently, there is a requirement to transmit our own data, so we need to expose these interfaces for use. So we n ...
Posted by snascendi on Sat, 27 Nov 2021 05:08:39 +0100
ListView implements chat conversation
When I first came into contact with ListView, I always saw others make a lot of strange interfaces, but I just couldn't. then I learned to customize the View, thinking that ListView can also customize the desired style, and then collected a lot of methods on the Internet, either I can't understand it, the code has not been copied yet, or it's n ...
Posted by draco2317 on Sat, 27 Nov 2021 04:37:55 +0100
[fluent topic] explain AppBar widgets in detail
Hello, everyone. I am nuts. The official account is "nuts front end".
AppBar
The application bar is one of the most commonly used components in various applications. It can be used to hold search fields, buttons to navigate between pages, or just page titles. Because it is such a common component, fluent provides a function called ...
Posted by Dodon on Fri, 26 Nov 2021 02:52:01 +0100
Solve the pain points in Android development with Kotlin Flow
prefaceThis paper aims to illustrate how to use Kotlin Flow to solve the pain points in Android development through actual business scenarios, and then study how to use Flow gracefully and correct some typical misunderstandings. For an introduction to Flow and its operator usage, please refer to: Asynchronous stream - Kotlin language Chinese st ...
Posted by dcole on Thu, 25 Nov 2021 21:53:57 +0100