Focus acquisition and return of measured Android audio

Focus acquisition and return of measured Android audio preface Recently, the boss wants to pause the music player in the mobile phone during the live broadcast of the short video in the product, and the mobile phone's music player can continue to play the previous music after exiting the video playback. First try wechat, emmm. It's really ...

Posted by Stray_Bullet on Wed, 09 Feb 2022 08:31:50 +0100

[Android_CN_OAID] the unique identification solution for Android devices can be used as an alternative to the unified SDK of Mobile Security Alliance (miit_mdid_xxx.aar).

Android_CN_OAID The unique identification solution for Android devices can be used as an alternative to the mobile security alliance unified SDK (miit_mdid_xxx.aar). This project provides portable interfaces for major domestic mobile phone manufacturers to obtain OAID (open anonymous device identification) and overseas mobile phone platforms t ...

Posted by souravsasi123 on Wed, 09 Feb 2022 02:43:35 +0100

what? Are you still using EventBus? Try the Flow api and get one

1. Preface Google has launched the flow api for a long time, commonly known as data flow. Let's look at the definition according to the old rule. The data Flow is built on the basis of collaborative process and can provide multiple values. Conceptually, a data stream is a set of data sequences that can be calculated and processed asynchronously ...

Posted by JellyFish on Tue, 08 Feb 2022 19:53:00 +0100

Android Gaode map developed by fluent plug-in

Develop an Android Gaode map plug-in from scratch preface After reading many blog posts, I found that there is little mention about how to use the mixed editing and interaction of Android and Dart in actual combat. In the actual project, fluent still needs to make a lot of use of some native functions, such as camera, map, accessing device, l ...

Posted by PrObLeM on Tue, 08 Feb 2022 15:54:43 +0100

From bronze to King, finish Maven with one article and collect it quickly

Click like and watch again, form the habit of praise, search wechat [coriander Chat Game] and pay attention to me catalogue 1. What is maven and why does it exist? What is the project structure like and how to locate jar s 2. Operation of Idea 4. Main components of Maven coordinates 5. maven lifecycle 6. Configuration of idea maven 7. ...

Posted by ruddernz on Tue, 08 Feb 2022 09:40:19 +0100

Android foundation building - learning notes of Gson framework

1 Preface In Android development, the Gson framework is often used to serialize Java objects and deserialize json data. This paper will gradually and deeply show the use of Gson framework through practical examples, hoping to help students develop better. 2 text 2.1 basic use Use tojason () and fromjason () of Gson object to serialize ...

Posted by dbradbury on Tue, 08 Feb 2022 07:51:54 +0100

Mechanism and process summary of dynamic permission application in Android system

From Android 6 From 0, the Android system provides a mechanism for dynamically applying for permission. When using dangerous permission, the APP needs the user's authorization before further operation. Permission application method There are two ways of permission application in Android system, as shown in the figure below: Static applicatio ...

Posted by wenxi on Tue, 08 Feb 2022 07:30:40 +0100

C + + implementation of anonymous shared memory

1, Ashmem C language interface You can usually use ashmem in the libcutils library_ create_ The region function creates a shared memory area: #define ASHMEM_DEVICE "/dev/ashmem" /* * ashmem_create_region - creates a new ashmem region and returns the file * descriptor, or <0 on error * * `name' is an optional label to give the region (vi ...

Posted by neoboffins on Mon, 07 Feb 2022 20:51:24 +0100

Android:Android messaging mechanism collation

Preface Organize Android messaging mechanisms to help you comb the content of Android messaging mechanisms I. Composition of Android Message Mechanism The Android messaging mechanism is actually the operating mechanism of Handler(). We often use Handler() to interact with other tasks during the development process, such as opening a su ...

Posted by Pino on Mon, 07 Feb 2022 18:28:35 +0100

Application guide and project practice of WorkManager of Android architecture components

Let's start with an introduction video of WorkManger: Chinese official introduction video (mainly because the little sister looks good ~) Usage scenario WorkManager is applicable to the needs that tasks need to continue to be executed after the application exits (such as the application data reporting server). For those cases that task ...

Posted by davidforbes on Mon, 07 Feb 2022 14:26:51 +0100