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

Android upload and download file progress monitoring, large file upload (within 500M)

1. Ordinary files are uploaded and downloaded in the form of retrofit+rxjava; 1.1 dependence implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:adapter-rxjava:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation 'io.reactivex:rxandroid:1.2.1' 1.2 retrofi ...

Posted by alan007 on Sun, 15 May 2022 23:45:24 +0300

Android ultra simple integration of living detection technology to quickly identify "fake face"

Android ultra simple integration of living detection technology to quickly identify "fake face" preface Have you ever had such concerns? Is it really safe to brush your face and unlock it? If someone impersonates me with my photos or videos, can the mobile phone find that I am not in front of the camera? Of course. Huawei HMS ML Kit i ...

Posted by wesmont on Sun, 15 May 2022 15:42:29 +0300