Use of ViewModel, Flow, Hilt and Coil in Jetpack Compose
Compose can be used with multiple Jetpack components
Compose can cooperate with the development of multiple Jetpack components to improve development efficiency
Multiple combinations
Use composite with ViewModel
summary
The use of ViewModel in Compose is consistent with Jetpack. Usually, when we build a page, if one piece of data needs to ...
Posted by jmboblee on Fri, 24 Dec 2021 19:47:38 +0100
Can Android cross process component communication be written like this?
Can Android cross process component communication be written like this?
As an Android Developer, you should have some component knowledge. The main feature of componentization is to peel off dependencies, but how to solve the communication problem when there is no direct dependency between components.
We usually use this C/S architecture simi ...
Posted by phpcharan on Fri, 24 Dec 2021 03:56:35 +0100
ResultApi Jump in Android
1. Preface
Previously, when jumping from page A to page B, receiving the result from page B usually uses onActivityForResult() to receive the data, but since the jump and return data are not in one place, it is more difficult to maintain. And if a page is likely to go to many places, returning results in one place is also detrimental to de ...
Posted by january_9th on Thu, 23 Dec 2021 23:32:22 +0100
Are you still worried about Android expression development? Come and try Android Emoji
1, What is Emoji1.1 Emoji backgroundemoji is a kind of emoji, which comes from the Japanese vocabulary "Aiwen" (pseudonym "え Mo じ", pronunciation is emoji). Its creator is Shigetaka Kurita, a Japanese. He focuses on various elements in his childhood to get inspiration, such as Japanese comics and Japanese Chinese character ...
Posted by Mardoxx on Thu, 23 Dec 2021 17:38:28 +0100
Write a fluent persistent session manager
preface
Last Flutter network request session management This paper introduces Dio's Cookie processing. Although the desired effect has been achieved, there are still three problems to be solved:
Cookie management code and business code are put together, exposing the details of the implementation.Cookie s are not persistent. Once the App is cl ...
Posted by direwolf on Wed, 22 Dec 2021 23:10:31 +0100
Re learn Android Framework layer application process creation process
After the Android system is started, the first Android application Launcher will be started. Then start other applications under user operation. The two processes are roughly the same. This paper mainly analyzes the startup process of launching Launcher.
Android system source code version: 9.0 0_ r3
The overall flow chart is as follows:
Zy ...
Posted by Push Eject on Wed, 22 Dec 2021 15:25:52 +0100
Event distribution process from Android Framework client ViewRootImpl to View
Overall process of event distribution
ViewRootImpl is followed by the timing of the client. This paper mainly focuses on the process of event distribution in the client
ViewRootImpl distribution event
dispatchInputEvent(InputEvent event) is the starting point of ViewRootImpl distribution event, and event is the input event
Aft ...
Posted by tilde on Wed, 22 Dec 2021 02:28:53 +0100
3, Android network development
Portal
Simple tutorial for getting started with Android
I. installation and use of Android Studio
II. Android interface development
III. Android network development
IV. practical application of dog collection
Learning objectives
Understanding HTTPUse of OKHttpNetwork data analysis
HTTP
Wikipedia: https://en.wikipedia.org/wiki/Hypertext ...
Posted by xsgatour on Tue, 21 Dec 2021 11:10:49 +0100
Before Android applies for permission, simply encapsulate the pop-up box to explain the application reason, tool class, and deal with app compliance inspection
Recently, when browsing the news, we often see that the Ministry of industry and information technology reported that so and so app failed the compliance inspection, refused to make rectification, and ordered all of this information, especially financial apps, off the shelves. The protection of personal information is indeed very important to u ...
Posted by ultraviolet_998 on Tue, 21 Dec 2021 07:16:22 +0100
Use Android SAF (storage access framework) to restrict the access of game anti harmony (pride of Eden) / Android data directory
Recently, I was playing a mobile game. The pride of Eden and some vertical paintings in the Japanese service client were slightly exposed. After the national service went online, it was harmoniously (added cloth)
But the great gods of nga always have a way to solve it. A big man provides an anti harmony method:
It is roughly to extract th ...
Posted by Pickle on Tue, 21 Dec 2021 00:40:59 +0100