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
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
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
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
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
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
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
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
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
The following is transferred from: http://www.cnblogs.com/yaozhenfa/p/xamarin_android_broadcastreceiver_and_bindservice.html
1, Foreword
After studying activities and services, you will find that services seem to be transparent to activities. On the contrary, activities are also transparent to services. Therefore, we also need a mechanism to ...
Posted by vdubdriver on Thu, 28 Apr 2022 01:59:23 +0300