Articles under the 'Android' tag
Understanding JSBridge Principles: Efficient Interaction Between H5 Frontend and Native Client
1. OverviewIn hybrid app development, combining native applications with WebView is an efficient technical solution. This approach allows complex business logic to be implemented using web technologies while enabling efficient bidirectional communication between H5 and Native. JSBridge plays a key r
...
More >>
Three Cognitive Traps of Android View Event Conflicts: Source-Level Truths and Enterprise Solutions
IntroductionView event conflicts are a common challenge in Android development. Although the official documentation thoroughly explains the event dispatch mechanism, many developers still fall into three cognitive traps:
The pseudo-synchronization of gesture interception
Priority inversion caused b
...
More >>
2025-02-06
Front-end
/
Android
How to Disable Huawei and Honor’s App Multiplie
1. BackgroundOn Huawei tablets and foldable devices, the system automatically enables the App Multiplier (Parallel View) feature for top-ranked apps that only support portrait orientation. This feature renders the same Activity in a left-right split view via system-level rendering to improve usabili
...
More >>
2025-01-24
Android
/
AppGallery
Android Communication Security
Component Communication SecurityWhat is local denial of service?Before understanding local denial of service, let’s briefly understand denial of service attacks (dos attacks) and distributed denial of service attacks (ddos).
The so-called denial of service attack is to occupy all the service threads
...
More >>
2024-08-30
Android
Android YUV Frame Data Overlays Watermark
When we want to add a watermark to a video while recording it, there are two options:
A. The video frame data is converted to Bitmap, watermark is drawn on bitmap, and then the watermarked Bitmap is converted to frame dataThis scheme can achieve watermark addition, although the use of RenderScript i
...
More >>
Android Implements Screenshot Function
Background of the projectIn order to meet the needs of monitoring user screenshots and displaying the floating feedback portal, we conducted a simple survey on the user screenshot function on the Android side. Since the Android system does not provide APIs related to screen capture notifications, we
...
More >>
2023-12-04
Android
/
Screenshot
Android Activity Components
Android Activity Components
Introduction: One of the four major components of Android, the medium for interaction between App and users.
Activity Lifecycle
In general the movement through an activity’s lifecycle looks like this:1.onCreate()
Called when the activity is first created. This is where
...
More >>
Android Fingerprint Recognition
General overviewAt the time of Android6.0 (Api23), the Android system added the api interface of fingerprint recognition, namely FingerprintManager, which defined the most basic fingerprint recognition interface. However, at the time of AndroidP (Api28), it was no longer officially recommended, and
...
More >>
2023-09-20
Android
/
Fingerprint Recognition
A High Reliability Task Execution Framework Based on XXL-JOB
What is a Task Scheduling FrameworkIn many applications, some tasks need to be performed periodically, such as generating reports, backing up data, updating caches, and so on. These tasks usually need to be executed automatically within a specified time interval, and need to run stably and reliably,
...
More >>
Understanding and Implementing Kotlin Coroutines
1. Concept of Kotlin CoroutinesKotlin Coroutines is a well-designed thread framework that uses threads at the underlying level. Coroutines can be understood as tasks executed on threads, and these tasks can switch between different threads. A single thread can run multiple coroutines, and coroutines
...
More >>