Android 11 compiles the kernel real-time output log
How to make the log output in real time when Android compiles the kernel?[android 11][qcom 8155 gvmq][ninja 1.10.2.git][android ninja 1.9.0.git]backgroundIt takes more than ten or twenty minutes to compile make bootimage for development. During this period, there is no log real-time output for a long time. It looks like it is output after compi ...
Posted by pkSML on Tue, 16 Nov 2021 04:07:56 -0800
How to realize automatic management of module life cycle in Android componentization
preface
Each application initializes an application class when it is started. We can do some initialization operations in this class, such as the initialization of a third-party sdk. After the component project is implemented, different business modules also need to do some initialization operations when the application is started. This involv ...
Posted by pete_bisby on Fri, 12 Nov 2021 08:29:36 -0800
Kotlin actual combat [v] anomalies in kotlin
1, How kotlin throws exceptionsException handling in Kotlin is similar to that in Java or other languages. A function can end normally or throw an exception when an error occurs. The function caller catches the exception and handles it; If not, the exception is thrown up the call stack again.The basic form of exception handling statements in Ko ...
Posted by BizLab on Thu, 11 Nov 2021 23:28:49 -0800
Android source code pit avoidance Guide 9 - AVRCP connection status is abnormal
AVRCP connection status is abnormal
Android version: android-9 (P version)
Problem phenomenon: disconnect the device and fail to issue Bluetooth adapter.action for a long time_ CONNECTION_ STATE_ The changed broadcast switches the connection status to Bluetooth adapter.state_ DISCONNECTED
After checking the log, it can be found that all m ...
Posted by subrata on Wed, 10 Nov 2021 19:42:32 -0800
Kotlin Vocabulary | use the extensions in kotlin to improve code readability
Have you ever wanted to add new functions or properties to the API of a class?
You can usually solve this problem by inheriting the class or creating a new function that takes an instance of the class as a parameter. Java programming language usually uses Utils class to solve such problems, but this method does not support automatic code com ...
Posted by dhorn on Wed, 10 Nov 2021 19:34:50 -0800
Start with the Room Kotlin API
Room It is the encapsulation of SQLite, which makes the operation of Android database very simple. It is also my favorite Jetpack library so far. In this article, I will tell you how to use and test the Room Kotlin API, and I will share its working principle during the introduction.
We will be based on Room with a view codelab Explain it to ...
Posted by shruti on Wed, 10 Nov 2021 19:24:16 -0800
BAT factory technology leader will take you to understand android Binder mechanism in 3 minutes. You must see it!!!
1, IntroductionRecently, due to work, I came into contact with the framework a little more. It is inevitable to deal with Binder and sort out some relevant knowledge, but I was still a little flustered when preparing to write this article. Moreover, the complexity of the whole Binder mechanism can not be described clearly in a few words. I'm al ...
Posted by demetri007 on Wed, 10 Nov 2021 13:20:35 -0800
Android TextToSpeech TTS Chinese text to speech (speech synthesis)
brief introduction
TTS is text to speech
1, Use the SDK or API provided by a third party, such as iFLYTEK, Baidu, Alibaba, etc;
2, Use the API of Android system: texttospeech
API documentation in TextToSpeech (official): TextToSpeech | Android Developers , record the detailed introduction of each method, variable and constant;
3, Use of ...
Posted by nrobi on Wed, 10 Nov 2021 07:45:36 -0800
Android Getting Started tutorial 𞓜 RecyclerView response sub item Click
Click is the most common and important means of interaction. The following describes how to click RecyclerView settings. Here is a common implementation, namely listener mode.When a user clicks an item, the app can respond accordingly. Here we use the method of adding click listeners to achieve this effect.Listener mode is widely used in Androi ...
Posted by mniessen on Mon, 08 Nov 2021 14:23:20 -0800
On the fifth day of Kotlin development, broadcast BroadcastReceiver
Full code Gitee address: Kotlin Demo: 15 day kotlin learning plan
Day 5 learning content code: Chapter5
catalogue
preface
definition
Application scenario
Knowledge point 1: static registration broadcast
Knowledge point 2: dynamic registration broadcast
Knowledge point 3: Customize global broadcasting
preface
BroadcastReceiver is o ...
Posted by Drabin on Mon, 08 Nov 2021 00:54:23 -0800