Looper is actually very simple

Every time I mention this looper, I feel a little despised. It's just a news queue. But when others ask, I don't know where to start. This time, I stroked the Tao. After stroking it clearly, I found that it was still very simple, ha ha. Looper is a way of continuously processing messages in a single thread. Several important classes are inv ...

Posted by e11even on Fri, 05 Nov 2021 18:24:19 -0700

Android Studio code Notes - USB interface, reading and writing files, string segmentation, input device information, etc

USB interface Universal Serial Bus (USB) is not only a serial bus standard, but also a technical specification of input and output interfaces. It is widely used in information communication products such as personal computers and mobile devices, and extended to photography equipment, digital television (set-top box), game consoles and o ...

Posted by jpaloyo on Thu, 04 Nov 2021 17:04:47 -0700

Talk about the Callback of collaborative process and write the model of collaborative process

The emergence of Coroutines has subverted the programming style of Java for many years. If you are the author of a third-party library, you may want to use Coroutines and Flow to make your Java callback based library more Kotlin and collaborative. On the other hand, if you are an API consumer, you may prefer to access the Coroutines style API t ...

Posted by jeff_papciak on Thu, 04 Nov 2021 14:41:06 -0700

End development technology - decrypt the responsive layout of the shuttle

Fluent is a cross platform application development framework that supports devices of various screen sizes. It can run on small devices such as smart watches or large devices such as TVs. Using the same code to adapt to different screen sizes and pixel densities is a challenge.There are no rigid rules for the design of the responsive layout of ...

Posted by jburbage on Thu, 04 Nov 2021 11:58:33 -0700

Kotlin actual combat [4] iterative things: while and for

1. while loopkotlin's while and do while are consistent with Java syntax. Here's a brief lookwhile (condition) { //When the condition is true, the code body executes /*...*/ } do {//Execute unconditionally once, and then execute when the condition is true /*...*/ } while (condition)2. for loopThe for loop exists only in one form, which ...

Posted by mcgruff on Thu, 04 Nov 2021 03:35:01 -0700

Use of 0.37 root data store for android development process

Introduction to room data storage room is a data persistence Library in the jetpack library, and the underlying implementation is using SQLite. However, the way to use it is simpler, the native SQLite method is more cumbersome, and root uses the way that entity classes and database tables are mapped. More concise and understandable. * room Data ...

Posted by aayatoos on Wed, 03 Nov 2021 10:15:01 -0700

service of android's four components

                    catalogue          I. concept of service         II. Creation method of service                 < 1> Specific steps for service creation             ...

Posted by stevegg1965 on Mon, 01 Nov 2021 15:53:52 -0700

Get data and bind to UI | MAD Skills

Welcome back MAD Skills Collection Paging 3.0! In the last article Paging 3.0 introduction In the article, we discussed the Paging library, learned how to integrate it into the application architecture and integrate it into the data layer of the application. We use PagingSource to obtain and use data for our application, and PagingConfig to cre ...

Posted by basdog22 on Sun, 31 Oct 2021 21:12:12 -0700

Cause classification and solutions of memory leakage in Android

1. What is a memory leak? android development mainly uses java (kotlin) language, which is the language of automatic memory management. When we use an object, we will automatically allocate memory to the object. When we no longer use the object, we will automatically recycle the memory allocated to the object. However, in some cases, the memor ...

Posted by rsasalm on Sun, 31 Oct 2021 00:14:59 -0700

Usage of file storage, list control ListView and adapter SimpleAdapter and BaseAdapter

1, File storage file store File storage in Android is divided into internal storage and external storage. Internal storage: store the data of the application into the device in the form of a file (under data / [package name of your APP] / files). When the created application is uninstalled, its internal storage file will be deleted. External ...

Posted by hermand on Sat, 30 Oct 2021 19:58:11 -0700