Several usage scenarios of Kotlin delegate attribute in Android Development

Kotlin is really a beautiful development language. She has some great features that make Android development interesting and exciting. Delegate properties Is one of them. In this article, we will see how entrustment makes Android development easier. Basics First, what is delegation? How does it work? Although delegation seems magical, it is ...

Posted by BMN on Tue, 25 Jan 2022 19:21:37 +0100

Deployment of parrot Anafi ground SDK (Android) on Ubuntu 18.04

1, Foreword Next, we will install and debug the groundsdk Android in the linux environment. The official documents given by Parrot are generally no problem, but I have never been in contact with Android development before, so I have encountered some difficulties, which is hereby recorded.The following is a link to the official installation ...

Posted by youngsei on Tue, 25 Jan 2022 14:33:55 +0100

What's new in Android 12: optimize the startup experience with SplashScreen

preface Because many applications need some initialization transactions during startup, there is a certain blank delay when starting the application. Before, our general practice was to improve the startup experience by replacing the custom theme of Android: windowsbackground to display a default picture in time when the application starts. I ...

Posted by Frango on Tue, 25 Jan 2022 12:28:22 +0100

Android process creation process

brief introduction Based on the source code analysis of Android 11.0, this paper analyzes how the Android process is created step by step 1, Overview 1.1 system_server process and Zygote process system_server process: used to manage the entire Java framework layer, including various system services such as ActivityManager and PowerManager; ...

Posted by phpBeginner06 on Tue, 25 Jan 2022 11:37:49 +0100

RxHttp, a more elegant collaborative process experience than Retrofit

1. ForewordPeople keep asking me, RxHttp What are the advantages over Retrofit? Here, I would like to talk about my ideas in terms of stability, functionality and ease of use.First of all, let me state that the emergence of RxHttp is not to kill anyone, but to give you more choices and different choices.stabilityI always think that Retrofit is ...

Posted by maff20 on Tue, 25 Jan 2022 11:11:17 +0100

If you can't learn, you have to learn. Jetpack Compose writes an IM APP

At the 2019 Google/IO conference, a new Android native UI development framework Jetpack Compose was unveiled. Like SwiftUI of IOS, Jetpack Compose is also a declarative UI framework. With the launch of its own platform specific declarative UI framework by Android and IOS mobile platforms, the whole industry has begun to turn to declarative inte ...

Posted by ocd on Tue, 25 Jan 2022 09:31:32 +0100

Principle analysis of JectPack components -- ViewModel

In the JectPack component, ViewModel is mainly used to encapsulate the data related to the interface. Similarly, ViewModel has the ability of life cycle awareness. It always exists in memory before the destruction of Activity or Fragment onDetach; Especially after system configuration changes such as screen rotation, the interface data saved by ...

Posted by techrat on Tue, 25 Jan 2022 07:48:49 +0100

13 playing audio using SoundPool

Create SoundPool BeatBox.java public class BeatBox { //... private static final int MAX_SOUNDS = 5; private AssetManager mAssets; private List<Sound> mSounds = new ArrayList<>(); private SoundPool mSoundPool; public BeatBox(Context context) { mAssets = context.getAssets(); /** * ...

Posted by xlordt on Tue, 25 Jan 2022 04:33:31 +0100

Android lesson 5: content provider

I What is a content provider Content provider is one of the four components, but we don't often use it in general development. The content provider is the ContentProvider, which provides a unified interface for data sharing between different software. It exposes data in a way similar to a data table. If you describe it with images, it's roughl ...

Posted by matthijs on Tue, 25 Jan 2022 02:05:02 +0100

Android datastore SharedPreferences or MMKV

1, SharedPreferences Unlike the way files are stored, if you want to save a relatively small set of key values, you should use the SharedReferences API. The SharedReferences object points to a file containing key value pairs and provides simple read and write methods. This article starts with SharedReferences and gradually introduces Preferen ...

Posted by Paul Arnold on Mon, 24 Jan 2022 08:34:38 +0100