Dragon killing in Java: how to generate it easily and quickly class file

​ **In the previous "dragon killing in Java: how to modify the syntax tree", we introduced in detail how to modify the syntax tree using the tool classes provided by the Javac source code** On this basis, there is an open source tool javapoet that can generate bytecode more quickly. The implementation principle is actually the encap ...

Posted by Giri J on Tue, 14 Dec 2021 10:54:52 +0100

Communication between activities

Suppose we have a common scenario:There are two activities. The first Activity shows a paragraph of textClick the "Edit" button to start the second Activity, and pass this text as a parameter to the second ActivityEdit the string in the second ActivityAfter editing, click Save to return the results to the first ActivityThe first Activ ...

Posted by sfhc on Tue, 14 Dec 2021 08:02:35 +0100

Look at layoutinflator, you may have a new understanding this time

This article is also published in my WeChat official account. It can scan the two-dimensional code at the bottom of the article or search for Guo Lin in WeChat. Today, I don't want to talk about some new features and features of Android. I especially want to talk about this old topic: layoutinflator. Now most of my articles are old Android. ...

Posted by tuneout on Tue, 14 Dec 2021 01:11:32 +0100

Quick start - Python Basics

After reading this article, you can have a certain understanding of Python language characteristics and coding style, and write simple Python programs.1, Installation and operationPlease refer to the resources for Python installation tutorials of various systems, which will not be repeated here.Check the python version and enter Python on the c ...

Posted by Mark Baker on Mon, 13 Dec 2021 06:16:27 +0100

Android achieve tiktok special effects!

1, Realization effect1.1 tiktok first, the special effect of the conveyor belt.From the above tiktok, we can see that the special effect of the belt conveyer is characterized by the following characteristicsThe left half of the screen is a normal preview videoThe right half of the screen is like a conveyor belt, constantly transporting the pict ...

Posted by HaZaRd420 on Mon, 13 Dec 2021 06:15:19 +0100

Android Getting Started tutorial | Android MediaPlayer playing audio

How MediaPlayer is usedCreate MediaPlayerYou can directly create new MediaPlayer or use the Create method provided by MediaPlayer.mediaPlayer = new MediaPlayer();After the create method is successfully used, the mediaPlayer is in the Prepared state. You can start playing directly. mediaPlayer = MediaPlayer.create(getApplicationContext(), Uri ...

Posted by NArc0t1c on Mon, 13 Dec 2021 05:59:31 +0100

Development of Android CameraX face recognition program based on hongsoft

1, Foreword Requirement: obtain the user information registered in the system according to the face seen in the lens Design scheme: ① Registration: the user takes pictures from the front-end system and sends them to the back-end for registration. The back end analyzes the face feature data of the picture and saves the feature data to the use ...

Posted by guru2k9 on Mon, 13 Dec 2021 04:50:15 +0100

Experience a wave of Android custom view s and realize super cute dynamic bombs!!

Old rules, let's take a look at the renderings first!Let's look at the implementation effect of android.Let's start to analyze the animation like the super cute dynamic weather little sun realized by the custom view! (if you haven't seen the weather sun, you can go to see the weather sun first. Some of the routines talked about by the weather s ...

Posted by Sarahlmorrow on Sun, 12 Dec 2021 03:54:49 +0100

Android class loader

Class lifecycleLoading phaseThe loading phase can be subdivided as followsLoad binary stream of classThe data structure transformation transforms the static storage structure represented by the binary stream into the runtime data structure of the method areaGenerate Java Lang. class object, as the access entry of various data of this class in t ...

Posted by bigray on Sun, 12 Dec 2021 03:10:24 +0100

Implementation of okhttp3- source code analysis interceptor chain

Interceptor chain should be one of the core of okhttp framework. Responsibility chain model The implementation of okhttp request Interceptor is a typical responsibility Chain mode, which generally requires the Interceptor class to implement the same interface. There is an Interceptor interface in okhttp. Both the default Interceptor and our c ...

Posted by Megienos on Sat, 11 Dec 2021 08:09:04 +0100