Window s mechanism for Android comprehensive analysis

preface Hello! I am a fairy ape. Welcome to read my article. Window, readers may know more about windows. On Windows system, we can run multiple windows at the same time, and each window represents an application. But it seems that there is no such thing on Android, but readers can immediately think of it. Isn't there a small window mode? For e ...

Posted by wrathican on Tue, 03 May 2022 00:43:18 +0300

8-3 Play Music and Video

1. Play music 1. Use MediaPlayer to play music Playing audio files in Android is generally implemented using the MediaPlayer class, which provides a very comprehensive control method for audio files in multiple formats, so that the work of playing music becomes very simple. Some of the more commonly used control methods in the MediaPlaye ...

Posted by snoopgreen on Mon, 02 May 2022 18:47:42 +0300

ARouter source code reading notes

Write in front This article does not talk about the usage of ARouter, but just read the source code and experience the thought of Ali God So if you want to know how ARouter works, please take a detour and go away I Let's start with navigation When ARouter jumps to the interface, there is almost a sentence of code ARouter.getInstance( ...

Posted by SharkBait on Mon, 02 May 2022 12:33:53 +0300

Audio and video development tour (15) OpenGL ES particle system - Fountain

catalogue Particles and particle systems Practice: fountain effect Problems encountered data harvest Through the practice of this article, the following effects are achieved   1, What are particles and particle systems How to define particles? A particle has position information (x,y,z), motion direction, color, life value (start and en ...

Posted by milind24 on Mon, 02 May 2022 11:20:45 +0300

NearbyService super simple integration tutorial get! Help you create a more convenient social chat application

background "People nearby", "face-to-face group building", "close point-to-point local chat"... These common functions will appear in major social software. But usually, "people nearby" can only find people hundreds of meters or even kilometers away from themselves. How can we narrow this distance and gr ...

Posted by LostinSchool on Mon, 02 May 2022 10:59:12 +0300

The Setter/Getter dispute is a little interesting

During the Code Review these days, I found that a large number of beans in the Model layer are written in different ways. Some classes are open all the way public, while others are closed all the way private. The discussion on this issue was quite exciting, which was really unexpected. Listen to their words, their views are quite reasonable. Cl ...

Posted by ashii on Sun, 01 May 2022 12:15:45 +0300

The usage of Android Notification when sending message notification is compatible with the download of high and low version demo

catalogue   preface 1, Basic notice implementation steps 1. Create a notification channel and set the importance (this 8.0 and above must be set before notification can be provided) 2. Set click notification jump activity 3. Create notification and set icon 4. Display notification 2, Implementation steps of message notification (using ...

Posted by JimStrosky on Sat, 30 Apr 2022 18:07:35 +0300

Android GifImageView loading Gif pictures and its principle

background I saw an interesting moving picture a few days ago. I originally wanted to download it and send it to my friends, but when I sent it on wechat, I prompted that the file was too large. I saw that it was 41M, so I was thinking about how to load such a large gif. So I made a demo to try. Glide As we all know, Glide supports loading g ...

Posted by r3dn3ck on Fri, 29 Apr 2022 12:46:32 +0300

Bluetooth development learning record

Recently, I encountered the business of using Bluetooth to transmit data in the project. I recorded it with a learning attitude, personal understanding, and welcome to leave a message if there are errors or additions. Enough talk, let's get down to business 1. What is Bluetooth Bluetooth is one of the most widely used wireless communication pr ...

Posted by danman252 on Thu, 28 Apr 2022 23:40:57 +0300

Lifecycle of Android Jetpack components

1, Introduction to Lifecycles Lifecycles is a component of Jetpack to solve the problem of life cycle management by monitoring the life cycle. If our class is not an Activity (broadcast \ fragment says otherwise), it has no life cycle. However, in the development process, in MVP mode, we need to call back the View interface in the P layer to u ...

Posted by kujtim on Thu, 28 Apr 2022 22:12:31 +0300