The first line of code - Second Edition - after viewing

Chapter 1 Introduction to Android as is based on idea. No wonder it's so similar proguard-rules.pro is a file that specifies the confusion rules of the project code (confusion is that the project is typed into an installation package and does not want to be cracked, so as to confuse and make it difficult for the cracker to read) gradle is base ...

Posted by dpacmittal on Thu, 19 May 2022 14:19:03 +0300

Realize the weather forecast App by hand -- switch the city to manual update + automatic refresh of background service

Manual update and background service automatic refresh and switch cities Update weather manually It is realized by pull-down refresh <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/swipe_refresh"> <ScrollView andro ...

Posted by bradleybebad on Thu, 19 May 2022 13:49:32 +0300

Android Bluetooth protocol stack message (bta_sys_sendmsg) sending mechanism -- unique resolution of the whole network

Android Bluetooth pairing connection source code analysis document, very detailed from btif BTA BTM HCI data flow to, and from control - click to download When reading the code, the first problem encountered by students who began to study the Bluetooth protocol stack is that when they encounter sending events, they can't track the code. Then t ...

Posted by zimick on Thu, 19 May 2022 03:36:28 +0300

Standardize code naming to make your Dart code more pleasant to read

Click here to learn about the "Flutter Introduction and Combat" column, continuous update and systematic learning! foreword Good coding style is very important. Keeping consistent naming can make the code reading experience better and team collaboration more efficient. This article introduces the officially recommended naming conven ...

Posted by MBrody on Thu, 19 May 2022 02:17:31 +0300

FFmpeg development (04): FFmpeg + OpenGLES realize audio visual playback

This article was first published on wechat official account: byte flow Serial of FFmpeg Development Series:FFmpeg development (01): FFmpeg compilation and integrationFFmpeg development (02): FFmpeg + ANativeWindow to realize video decoding and playbackFFmpeg development (03): FFmpeg + OpenSLES realize audio decoding and playback This paper real ...

Posted by kool_samule on Wed, 18 May 2022 12:00:05 +0300

FFmpeg development (01): FFmpeg compilation and integration

The original article was first published on wechat official account: byte flow Why learn FFmpeg development FFmpeg is a well-known open source audio and video processing software. It provides rich and friendly interfaces to support developers' secondary development. FFmpeg reads "ef ef em peg", where "FF" refers to "Fa ...

Posted by chrisg101 on Wed, 18 May 2022 05:38:19 +0300

Influence of initialization timing of virtualapk plug-in framework on starting plug-in Activity

Problem background It is stated in the virtualapk framework document that initialization needs to be carried out in the onCreate method in the Application. It is no problem to use it according to the steps in the document. It is also possible to start the plug-in Activity from the host Due to business needs, the use of virtualApk in the projec ...

Posted by Sianide on Tue, 17 May 2022 18:11:09 +0300

Fluent asynchronous programming - event loop, Isolate, Stream

Event loop, Isolate Before we start, we need to understand that Dart is single threaded and that fluent depends on Dart If you know event loop in js The whole process of asynchronous dart is well understood Let's look at a piece of code first import 'dart:async'; Future eventLoop() async{ print('A'); Future((){ print('F'); scheduleMicrota ...

Posted by WinterDragon on Mon, 16 May 2022 23:21:38 +0300

Another Android open source masterpiece released! New video animation special effects SDK: efficient, stable and reliable, low maintenance cost

Not long ago, the technical team of byte beating opened a video animation special effects SDK on Github, which can realize the mixing of Alpha channel and RGB channel on the client through OpenGL ES by making video materials separated from Alpha channel, so as to play video with transparent channel on the client. This scheme significantly redu ...

Posted by Pryach on Mon, 16 May 2022 21:31:56 +0300

Custom annotation

One case: Custom ButterKnife implements findViewById and onClick events of the next View with annotations. Custom annotations are generally divided into two steps: the first step is to declare annotations and the second step is to parse annotations. 1. User defined annotation import java.lang.annotation.ElementType; import java.lang.annotati ...

Posted by thessoro on Mon, 16 May 2022 17:14:48 +0300