Channel channel in Kotlin
select multiplexing in channel
In the data communication system or computer network system, the bandwidth or capacity of the transmission medium is often greater than the demand for transmitting a single signal. In order to make effective use of the communication line, one channel is expected to transmit multiple signals at the same time ...
Added by seodevhead on Fri, 18 Feb 2022 01:55:57 +0200
Android Window series - WindowManager Source code analysis of addview (update of View)
summary
The previous article explained the knowledge points related to window and decorview. Interested readers can see the following: Android Window series (I) - window and decorview
This article will continue to explore the relationship between window and view, mainly focusing on "how to add view to window".
How to add View in w ...
Added by Renich on Thu, 17 Feb 2022 22:47:20 +0200
Android Development - use broadcast to design simple music box
1, Function description
When using the mobile music player, you will see the buttons of "previous", "pause / play", "restart" and "next". It can be seen that the song name and singer name are displayed at the top of the screen, and four buttons are placed at the bottom to operate "previous" ...
Added by ccalzaretta on Thu, 17 Feb 2022 22:13:33 +0200
[daily practice of Android spring moves] LeetCode Hot 10 questions
overview
LeetCode Hot: realize Trie (prefix tree), the K largest element in the array, the largest square, flip binary tree, palindrome linked list, the nearest common ancestor of binary tree, the product of arrays other than itself, the maximum value of sliding window, search two-dimensional matrix II and complete square number
LeetCode ...
Added by ganlal on Thu, 17 Feb 2022 17:18:05 +0200
Overview of Android Binder mechanism
1, What is it
Binder is an inter process communication mechanism of Android system. It is mainly composed of the following parts: virtual binder device (/ dev/binder), binder driver (binder. C in the kernel), ServiceManager, Service providing Service and Client invoking Service.
Binder device and binder driver realize the protocol of process ...
Added by cosmos33 on Thu, 17 Feb 2022 16:29:05 +0200
Android monitors mobile app usage
brief introduction
In this article, Android is used to obtain the Activity on the top of the mobile phone to monitor the usage of mobile applications
Technical background
In my daily study, I want to automatically collect the use time of various applications of mobile phone software, such as get, geek time, Keep, wechat reading, etc
However ...
Added by lorne17 on Wed, 16 Feb 2022 22:43:07 +0200
Android development from introduction to mastery Chapter 3: Layout
Android development from entry to masteryChapter III: LayoutSix of the Android layouts are:LinearLayoutRelativelayoutTablelayoutFrameLayoutAbsolute layoutGridLayoutLinearLayout (linear layout). We use the Weight attribute of LinearLayout more for screen adaptation. LinearLayout includes some basic attributes, the use of Weight attribute and how ...
Added by JamieThompson on Wed, 16 Feb 2022 17:22:05 +0200
Draw drawing process of UI drawing process
preface
From the previous articles, we can know the measurement and layout of ui. This time, let's first pay attention to how our ui is drawn. So here we first need to understand the specific drawing process and the role of paint and Canvas in this process
Drawing process
In previous courses, we mentioned that performmeasure, performlayout a ...
Added by pneudralics on Tue, 15 Feb 2022 16:10:55 +0200
Face + + realizes face detection in the way of flow
The following steps can be used for face detection:Load the model file and initialize the interfaceObtain authorizationCall face detection to obtain key pointsNotification draw keyRelease interface resourcesSteps 3 and 4 here are repeated after receiving the camera data. We can abstract these steps into data flow for encapsulation. Face + + con ...
Added by kaser on Tue, 15 Feb 2022 15:04:40 +0200
android activity startup process_ Detailed explanation of Activity startup process (based on 10.0 source code)
Activity overview
There are four components in Android: Activity, Service, BroadcastReceiver and ContentProvider. The Activity that we most often contact and users directly feel is Activity. Today, let's talk about the execution process and working principle of Android startup.
Activity is a presentation component, which is used to show users ...
Added by shanksta13 on Tue, 15 Feb 2022 07:58:14 +0200