Jetpack AAC complete analysis Lifecycle fully mastered!

1, Introduction to Android Jetpack 1.1 what is jetpack The official definition is as follows: Jetpack is a suite composed of multiple libraries, which can help developers follow best practices, reduce template code, and write code that can run consistently in various Android versions and devices, so that developers can focus on writing im ...

Posted by gypmaster on Fri, 24 Sep 2021 21:47:23 -0700

Android 10 system process SystemServer

        In the previous section The Android 10 system process Zygote starts The Zygote process is started. It is said that the Zygote process will create the SystemServer process and execute the main () function. The SystemServer process hosts the core services of the entire Android framework layer. Let's take a look at the ...

Posted by Jpauls104 on Fri, 24 Sep 2021 01:34:06 -0700

Establishment of Android development environment and production of simple HelloWorld program

1. Download Android Studio Official website: http://www.android-studio.org 2. Right click to run the downloaded installer as an administrator, select the installation path, and go all the way to Next. 3. Error message when opening for the first time: unable to access Android SDK add on list Reason: after the Android SDK is started, it will det ...

Posted by Rhysyngsun on Thu, 23 Sep 2021 06:42:55 -0700

Retrofit Source Parsing

How to implement interface calls within Retrofit We all know Retrofit is by defining an interface, taking an instance of the interface, and calling the corresponding method. We start with the process to see how the source code works. 1. First get a customized service instance by retrofit.create method, source code above: Here you can see ...

Posted by Kilo on Wed, 22 Sep 2021 10:42:07 -0700

[componentization] how to make Android Library have Application life

App Startup transformation process of JetPack What are the difficulties encountered in the process of componentization?What do you think of this difficulty?App StartupApp Startup pros and consTransformation ideasOptimize experienceopen source reference material We hope to divide the business into modules (Libraries), so as to better assem ...

Posted by jeremyphphaven on Wed, 22 Sep 2021 10:20:26 -0700

Java turns to Kotlin and points north

preface Java is actually an interpretative language. Java source code is compiled to generate class files that can be executed by the JVMThe files generated by the Kotlin compiler can be recognized and executed by the JVM, so KT can still be executed in the same environment even if its syntax is very different from JavaKotlin is a simplifi ...

Posted by Jmz on Wed, 22 Sep 2021 07:34:16 -0700

python + uiautomator2 Chinese usage rules

python + uiautomator2 Chinese usage rules 1, Installation 1. Install uiautomator2 #Since uiautomator2 is still under development, you must add '– pre' to install the development version. pip install --pre uiautomator2 #You can also install from source git clone https://github.com/openatx/uiautomator2 pip install -e uiautomator2 ...

Posted by SonnyKo on Wed, 22 Sep 2021 01:32:32 -0700

Weather app

1, Initializing the interface in Java code Initialize the ViewPager interface in MainActivity private void initPager() { //Create a Fragment object and add it to the ViewPager data source for (int i=0;i<cityList.size();i++){ //Use the for loop to add the contents of the city collection to the fragment collection ...

Posted by yzerman on Tue, 21 Sep 2021 16:03:58 -0700

OpenMax IL layer design analysis summary

The relevant design of OpenMax is very excellent. This paper mainly analyzes and summarizes the IL layer of OpenMax from the design point of view. For the basic concepts of OpenMax and the basic introduction of IL layer, please refer to another personal summary about encoding and decoding abstraction layer OpenMax: https://blog.csdn.net/run ...

Posted by CrowderSoup on Tue, 21 Sep 2021 10:41:21 -0700

Button class component

In Android, there are some button components, including normal buttons, picture buttons, radio buttons, check buttons, and so on. A normal button <Button android:id="@+id/ID" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="Display Text" /> There are two ways to add a button click event lis ...

Posted by tracy on Tue, 21 Sep 2021 10:23:58 -0700