For reprinting, please indicate the source: Xia Xuan_xiaxuan
1. Introduction to Kotlin
I haven't blogged for a long time. A few days ago, Google introduced a new language, Kotlin. In short, Kotlin is a JVM-based programming language, which is growing into an inheritor of the Java language used in Android development. Java is one of th ...
Posted by heyjohnlim on Fri, 28 Jun 2019 13:09:31 -0700
Today, I will briefly introduce how to use Android Media Codec to decode AAC audio files or real-time AAC audio frames and play them through AudioTrack. The main idea is to get the data of a frame of AAC from the file or network, and send it to the decoder for decoding and playing.
AudioTrack is mainly used to play sou ...
Posted by neal.pressley on Fri, 28 Jun 2019 12:28:23 -0700
About the author: Speedy
Wechat Public Number: Android Tour
Blog Home Page: http://blog.csdn.net/speedystone
Nuggets column: https://juejin.im/user/57e082d60bd1d00057ff8c45
In our daily development, we need a lot of pictures to beautify our APP. Besides enhancing the aesthetics of UI, the large use of pictures also ...
Posted by Gordicron on Fri, 28 Jun 2019 11:31:37 -0700
I really like the effect of folding toolbars in Material Design, which is the design used in Bilbili Android Client Video Details Page. In the second part of this article, we will learn about the use of Collapsing Toolbar Layout by simply emulating the implementation of Bilbili Video Details Page. The third part of the article introduces the co ...
Posted by sashi34u on Thu, 27 Jun 2019 19:10:34 -0700
When developing, in order to make the user experience better, there will be a start welcome page when app starts. After entering app, the user browses the page, first makes the network request, then the server responds to the data, and finally displays it on the page, the u ...
Posted by HaZaRd420 on Thu, 27 Jun 2019 18:52:22 -0700
Java is a kind of garbage collection language. Its advantage is that developers do not need to manage memory allocation deliberately. It reduces the possibility of application crashing due to local fault, and prevents unreleased memory from crashing heap, so it is safer to write code.
Unfortunately, there are still many logical leaks in Ja ...
Posted by Dazzozo on Thu, 27 Jun 2019 17:25:50 -0700
HandlerThread is a subclass of Thread and another thread form provided in Android.
Handy class for starting a new thread that has a looper. The looper can then be used to create handler classes. Note that start() must still be called.This is the description of the official class. Say that this class is a thread with Looper, the looper ...
Posted by ballouta on Thu, 27 Jun 2019 16:25:33 -0700
Recently, I have been researching plug-in things. I have seen that most of the things on the Internet are to explain the principles directly and then write a demo. This is not a good understanding for many friends who have no introduction. Now I will sort out and explain the knowledge points needed by plug-in step by step through my own resear ...
Posted by chiaki*misu on Thu, 27 Jun 2019 14:15:40 -0700
1. Download EventBus's Class Library
Source code: https://github.com/greenrobot/EventBus Dependencies can be added directly:
If you've read the previous article, you should have used EventBus in a simple way. In the previous section, we used the onEventMainThread method.There are actually other ways ...
Posted by WLW on Thu, 27 Jun 2019 12:32:19 -0700
First, take a look at the phonegap initialization process and the flow chart of Native and JS interaction.
Description: In socket server mode, phonegap.js source code implements an XHR request in 1 millisecond, when there is JS statement data in the Native JS queue, it is the real 1 millisecond call; when there is no data, scok ...
Posted by jon23d on Wed, 26 Jun 2019 16:40:34 -0700