AI Background Screen · Let AI Operate Your Phone on a Separate Screen
A background screen tool built on Android's VirtualDisplay API, enabling AI to operate a phone on an independent virtual screen without affecting the main display or keyboard. Supports click, swipe, multi-touch gestures, Chinese text input, screenshot, OCR, and template matching. No root required; Android 12+ needed. Provides integration via CLI, MCP, and DSH plugins.
Read Moredshgo-vmbridge: Controlling Android Virtual Machines in AndVM via ADB
dshgo-vmbridge is a local client plugin for DSH Go that connects to an Android 12 virtual machine in AndVM via ADB, providing 22 vm_* tools—including screen observation, click input, root shell, APK installation, and screenshot capture—enabling AI to directly control the virtual machine.
Read Moredsh-go-phone: Running the Mobile DSH Go Engine in Desktop Harness
dsh-go-phone is a DeepSeek Harness plugin that, via ADB port forwarding and a local gateway, embeds the DSH Go engine running on an Android device into the desktop Harness as a full-screen iframe, maintaining the same conversation, same workspace, and same plugin environment.
Read MoreMobile App Testing Plugin: Running APKs in DeepSeek Harness
Run Android APKs directly in DeepSeek Harness: auto-installed into a managed emulator with real-time screen mirroring and touch input, plus MITM-based HTTPS decryption. Supports a 64-bit primary runtime and a 32-bit compatibility runtime, with input latency as low as single-digit milliseconds.
Read Moreadb-mobile-use: Controlling Real Android Devices in the DSH Right Panel
Introducing the community DSH client plugin adb-mobile-use (dsh-mobile-use v1.4.40): the right panel provides a real-time ADB screen mirror with tap and region-select feedback relay; adb_ui reads the UI text tree in approximately 120 ms as an alternative to the default screenshot-based inference. Both screen mirroring and ADB operate locally—no MCP required. Includes official git clone and install_bundle setup steps, adb/ffmpeg dependencies, and typical adb_* usage patterns with relevant caveats.
Read MoreQ-Star: Generate an Android App in One Sentence — From Natural Language to a Downloadable APK
Introduces the SkillHub skill Q-Star — One-Sentence Android App Generation (@org-dq6gixa1/qstar-one-sentence-app-generator, v1.0.1, Qigu Technology). Based on the official description: describe your requirements in natural language to automatically generate UI, features, and Android project source code, with asynchronous APK builds available for download. Covers the skillhub CLI installation directories and commands under Cursor, Claude Code, and Codex; annotates key metadata such as paid Skill status and no API Key required; and provides a reproducible usage skeleton along with applicable caveats.
Read MoreAndroid Development Agent Skill Set: 17 Specialized Agent Capabilities for Android Engineering
The SkillHub community skill pack "Android Development Agent Skills" (@user_3c6cb52e/awesome-android-agent-skills, v1.0.0) aggregates 17 Android Agent capabilities spanning Compose, coroutine-based networking, Gradle, architecture, testing, performance optimization, and migration. Based on the official page and the SkillHub installation documentation, this article outlines the pack's positioning, capability scope, skillhub CLI installation steps, and skills directory configuration for Cursor, Claude Code, and Codex, while providing a reproducible enablement path along with usage considerations.
Read Morebmob-database-android: An Agent Skill for Bmob Database CRUD in Native Android Projects
bmob-database-android is a community Skill on SkillHub, designed for native Android (Java/Kotlin) integration of the io.github.bmob:android-sdk. It guides Agents through BmobObject modeling, BmobQuery queries, Manifest and BmobContentProvider configuration, as well as batch and security checklists. Before proceeding, table structures can be aligned via the bmob-mcp `get_project_tables` tool. To install, run `skillhub install @user_92a793e0/bmob-database-android --dir <path-to-local-skills-directory>`. This Skill is not applicable to JS, iOS, Flutter, or raw REST scenarios — please select the corresponding platform-specific Skill instead.
Read Moredsh-go-android-app: Preview and Build Android Apps on Your Phone with DSH Go
dsh-go-android-app is a DSH Go workflow plugin maintained by keyboard3 (v0.1.2, MIT). Assuming the engine has been initialized and the model configured, after installing via the npm package and restarting the local engine, you can describe your desired app in natural language within the chat, use "Open phone desktop preview" to iteratively refine the UI on the same device, and once satisfied, reply "Confirm packaging" to generate an APK for installation. See the README's "On-the-Go Workflow" example for a typical flow. Capabilities such as GPS and Health Connect are not yet included in the plugin templates. Before installing, verify the source code and license; the plugin runs under dsh process permissions.
Read Morefrida-android-hook: Performing Android Frida Hooking with an Agent on Windows PowerShell
frida-android-hook is a SkillHub community Skill (it-ops-security, v1.0.0) designed for Android Frida Hook, JS injection, adb push deployment of frida-server, frida-ps, and connection troubleshooting on Windows PowerShell. No API Key required. The article is based on the official description and the skillhub.md documentation, covering skillhub installation into Cursor and other skills directories, trigger-word invocation methods, and applicable boundaries. The public page does not provide a complete SKILL body example; typical usage is primarily initiated through conversational triggers.
Read Moredsh-dqy: Turning Mobile Notifications into Always-On Autonomous Android Agents on DSH
dsh-dqy (Black Carp) is a workflow plugin for DeepSeek Harness authored by xiaozqi. It drives a physical device via ADB, chaining notification filtering, LLM-based decision-making, guardrail validation, UI automation, and voice output into a closed loop, with the option to leverage the DSH host model channel via host-llm. The current README uses Douyin direct messages as the core verification path, with a default-silent mode and a confirmation inbox to safeguard outbound actions. Based on the GitHub README and package.json, this article covers installation prerequisites, a three-step quick start, YAML recipes, and the layered architecture, while advising users to review the source code and process permissions before installing.
Read Moredsh-usage-android: DSH Session Token Usage Statistics for Android (Host Side)
Android DSH has no Web Client, so usage panel plugins declared by dsh.client cannot render on mobile. dsh-usage-android, maintained by Verchiel666, repurposes session token statistics into a pure host tool called usage_report: it reads session.v4.jsonl.zstd under DSH_HOME and aggregates input/output/cache tokens, daily trends, top sessions, and optional cost (requires a self-configured unit price), with support for a 30-second cache and refresh. It can be installed via cordis.patch.yml or `npm install dsh-usage-android`, and is released under the MIT license.
Read Moredsh-PEC: Remotely Control Local DeepSeek Harness Sessions via Phone
dsh-PEC is a DSH client plugin maintained by huajikano, consisting of a desktop dsh-pec gateway and a ~25 KB Android APK. Mobile devices connect to the local machine via LAN or Tailscale on port 7317 to manage sessions, models, approvals, PTY terminals, workspace files, and certain settings, without deploying an additional backend. The article details the installation commands based on the official README (local directory, `dsh plugin add dsh-pec`, and the GitHub source with a 'ding' tag), first-time password-free pairing, and upgrade self-checks, while emphasizing usage constraints such as clear-text HTTP and in-process execution permissions.
Read Moredsh-go-plugin-adb: Let the Agent open an adb shell on the phone for itself
`jminn0/dsh-go-plugin-adb` is a workflow plugin maintained by JMINN0 for DSH. It embeds the ADB client and adbd within the same device, allowing the Agent to connect to the loopback address `127.0.0.1:5555` to operate locally. It requires no root access, no PC, and remains functional even when Wi-Fi is turned off. The article covers prerequisites, installation (`dsh plugin --profile web add .`), engine restart, and verification, following the one-time pairing sequence of `adb pair`/`adb connect`. It also explains why using `adb tcpip 5555` is not recommended (as it restarts adbd and disconnects clients like Shizuku). Subsequently, it presents the parameters and practical limits of six tools: `adb_devices`, `adb_shell`, `adb_install`, `adb_logcat`, `adb_screencap`, and `adb_reconnect`. Finally, it outlines applicable scenarios and precautions: tools run with DSH process permissions, are unintercepted, have been verified on a single device model, and have not been published to the npm registry. You should read the source code before installation.
Read Moredsh-phone: Running Backend Android Instances in the DSH Right-hand Sidebar
dsh-phone is a client plugin for DeepSeek Harness (v0.4.1, MIT), which runs Android in the backend (redroid / SDK Emulator / attach), displays the scrcpy screen in the right sidebar of the browser, and registers nine tools—such as phone_status, phone_screenshot, and phone_tap—with the Agent. To install, download the tgz from the GitHub Release and run `dsh plugin --profile web add`; do not use the similarly named npm package. It supports lazy startup, lifecycle management, and one-command attach integration. Requires DSH >=0.2.1-rc.2 <0.3.0 and Node >=20.
Read Moredsh-pad-kit: Running DeepSeek Harness Locally on Android Tablets
dsh-pad-kit is a DSH client integration plugin maintained by longsiqi-123. It installs DeepSeek Harness via SSH within Termux on Android ARM64 tablets using a LAN installation page. It patches issues regarding native bindings, flock, and hard links, and integrates with Termux:Boot to enable auto-start. The computer side provides seven `tablet_*` utilities, including `tablet_install_page`. Once installed, the full DSH Web interface can be accessed via the tablet's browser. Requires DSH ≥ 0.1.7-rc.2; please restart DSH after installation.
Read Moredsh-remote-hub: Remotely control DSH on computer using a native mobile app
The dsh-remote-public repository from liaoguogang-hub provides both the NPM plugin dsh-remote-hub and the DSH Remote Android App. The plugin runs a Host on the computer to perform protocol bridging, automatically configures ngrok/cloudflared tunnels, and issues 30-day cookies. The mobile app, built with Kotlin/Compose, directly connects to DSH via HTTP/WebSocket, supporting QR code pairing, session management, and streaming conversations. Installation requires specifying dsh-remote-hub@0.4.6 and using the official registry. The public version contains no built-in credentials and is suitable for using DSH on a local network or via remote tunnels.
Read Moredsh-plugin-artemis: Natural Language-Driven Android Automation via Google ARTEMIS in DSH
dsh-plugin-artemis, maintained by coolluo, connects Google ARTEMIS to DeepSeek Harness via MCP. Users describe tasks in natural language; the agent executes them step by step on real devices or an emulator and returns results, screenshots, and traces. The plugin performs polling/waiting within artemis_run_task and provides five tools, including device_state, trace, and doctor. The article covers the installation command dsh plugin --profile desktop add dsh-plugin-artemis, artemisPath configuration, key points for replacing Gemini with DeepSeek Flash, as well as prerequisites and troubleshooting.
Read MoreAPK In-depth Processing Toolbox: Android Package Parsing and Re-signing Skill
The APK Deep Processing Toolbox (@user_c04a01de/apk-toolkit) is an Android APK processing skill published by a SkillHub community author. Version 1.0.0, classified under it-ops-security, it requires no API key for use. It consolidates deep APK analysis, attribute editing, packaging guidance, and re-signing into a single entry point. It can extract the package name, app name, version, SDK, signature scheme/MD5, permissions, packager status, FB Hash, App filing features, and RSA modulus. It can also rebuild and re-sign APKs after modifying the package or app name. The article provides activation coordinates, version and source verification information, typical usage paths, and precautions—such as re-signing changing the signature identity and specific detection items depending on the APK itself—and includes the official address.
Read MoreAndroid App Compilation: Building and Installing APP_android into an APK with a Single Command
Introducing the “Android APP Build” Skill on SkillHub (@user_e150a61d/app-android-build, version 1.0.0). Targeted at the BoLing APP native rewrite project APP_android (Kotlin/Compose), it lets you complete APK compilation and device installation with a single command after you modify code under APP_android/, using trigger phrases such as “build APP_android”, “install on device”, “package APK”, and “native compilation” when you need to verify on a real device. The article describes its positioning, core features, trigger words, typical usage, and applicable boundaries, and notes that the installation steps and compilation details could not be verified in the retrieved materials; consult the official page before use.
Read MoreUnity Project Android Channel SDK Integration Skill: Standardizing the Channel Integration Process
This article introduces the Unity Android Channel SDK integration skill. The community skill coordinates are @user_f4139100/unity-channel-sdk-integration, version 1.0.0, categorized as dev-programming, with the tag requires_api_key=false. It is not bound to a specific project structure, supports both local AAR and remote Maven repository SDK sources, covers three architectures: monolithic, master-sub package, and Gradle Flavor, and proceeds in the order of SDK analysis, architecture design, channel contract implementation, build configuration, and test verification. The article provides the official address and the SkillHub page, notes that no unified installation command was found in the captured materials, thus does not provide unverified installation methods, and suggests referring to the corresponding documentation for channel differences.
Read More**Android Black-Box Security Hunting (Lvan): Systematizing the Process of APK Black-Box Vulnerability Discovery**
Android Black-box Security Hunt (Lvan) is a black-box vulnerability mining skill for Android APKs, located at @user_a730098d/android-apk-blackbox-hunt. Version 2.0.1, sourced from the community and categorized under it-ops-security, it was published by user_a730098d. With a SkillHub rating of 100000, 9786 downloads, and the tag requires_api_key=false, it solidifies black-box testing into three steps: first, attack surface analysis covering exported components, Deep Links/App Links, WebView/JSBridge, and local ports; second, static reverse engineering using jadx/apktool to find hardcoded keys and weak encryption; finally, optional dynamic verification using Frida/Objection/Burp/MobSF to determine if vulnerabilities, such as SSL Pinning bypasses, are truly exploitable. The goal is to output a reliable list of client-side vulnerabilities. Although no specific installation commands are provided, based on the general SKILL.md format, it should be triggered when users say "mine APK vulnerabilities" or "test Android clients." It is strictly for use on your own or authorized APKs.
Read Moreandroid-lib-lookup: Look up Android dependency classes and APIs from locally cached AAR/JAR files
android-lib-lookup is a SkillHub community Skill (@user_d2af0937/android-lib-lookup, v1.0.0, category: dev-programming) that automatically queries dependencies and APIs of Android/Gradle projects from locally cached AAR/JAR files. It offers class lookup (returning the library, version, and complete API signature), package browsing, lists of public classes from Maven dependencies, and keyword fuzzy search. It automatically builds an index and caches it upon the initial query. It supports both build.gradle and build.gradle.kts. Implemented purely with the Python 3.6+ standard library, it requires no pip installation. As installation commands and tool activation methods are not provided in the official documentation, it is recommended to refer to the official page for details.
Read Moredsh-phone: Mount Backend Android in the DSH right panel and drive with phone_* tools
dsh-phone (Thatgfsj) is a client plugin for DeepSeek Harness: it runs Android (redroid / SDK Emulator / attach) in the backend, displays the scrcpy feed in the right sidebar of the browser, and registers nine tools—such as phone_status, phone_screenshot, and phone_tap—with the Agent. Based on the v0.4.1 README, this article explains runtime selection, provisioning, installation commands for the release tgz, lazy loading and lifecycle management, and key points for one-line attach integration. Prerequisites for installation include DSH >=0.2.1-rc.2 and Node >=20; note that the plugin runs with the permissions of the DSH process.
Read Moredsh-video-android: Storyboarding, Multi-Vendor Generation, and FFmpeg Export on DSHA
dsh-video-android (v0.2.0, MIT) is a DSH client plugin maintained by dttGitHu, targeting Android DSHA. It features storyboard JSON under the projects partition, 13 `film_*` tools, automatic switching across six image/video provider pools, FFmpeg composition of 1280×720 MP4 files, in-session prompt optimization, and the /film-studio narrow-screen workbench. Configuration supports `cordis.patch.yml`, environment variables, and `providers.json`. To install, use SkillHub ("Send to DeepSeek Harness to install"). Prerequisites include Node≥20, FFmpeg, and the corresponding API keys.
Read MoreJetpack Compose: Android's Modern Declarative UI Framework
An introduction to Jetpack Compose's declarative UI approach, core features, and installation steps, designed for developers seeking to simplify Android UI development.
Read Moreandroid-remote-build: Android Project Local Build Configuration Management Skill
android-remote-build is a community Skill, version 2.0.0, designed for the management of local build configurations for Android projects. It generates build scripts, manages project configurations, and records build history, assisting developers in centrally maintaining the build process. It is suitable for teams or individual developers requiring unified management of Android build configurations.
Read Moredsh-phone-butler: Enable Agents to Manage Real Android Devices via ADB
Introducing the DeepSeek Harness plugin, dsh-phone-butler: enabling agents to perform storage analysis, cache cleaning, application management, and screenshot capture on real Android devices via ADB without requiring root access.
Read More@kinocode/dsh-mobile: Pair DSH on Android, approve requests from the notification
The DSH host plugin @kinocode/dsh-mobile (0.3.7), maintained by kinocode-jp, works with a standalone Android app and provides: sidebar QR pairing, a computer HTTPS gateway (default port 3543) for using the DSH Web UI on a phone, approval replies from notifications (first response wins), and an optional relay to push turn-end events. Requires DSH >=0.2.1-rc.2 <0.3.0, webserver, and Node 22.4+. Installation: `dsh plugin --profile desktop add @kinocode/dsh-mobile`. Unofficial project; the plugin runs with the permissions of the dsh process, and the relay must be self-hosted or otherwise trusted.
Read Moredsh-return-front: Automatically switch DSH back to the foreground after the real device control session ends
dsh-return-front is a DSH client plugin that, at the end of a real-device control turn on Android (Termux + Shizuku), launches the host app via monkey to bring DSH back to the foreground. It is triggered only when the tools called in the current turn can change the foreground of the real device and the switch in the settings is enabled; read-only tasks and virtual screens do not trigger it. Installation: dsh plugin --profile web add github:zxyan99/dsh-return-front. After restart, check "Return to DSH after real-device control tasks end" in Settings → General. Requirements: scope must be all or real-only, as well as Shizuku and sufficient execution levels. MIT licensed, maintained by zxyan99.
Read MoreDeepSeek Harness Remote Host Plugin: Connecting an Android Device via Local Area Network
The `w2112515/dsh-remote-host` plugin for DSH Harness (DSH) connects Android phones over a local network using the Noise protocol, providing remote control and web access. Installation requires dsh 0.1.1-rc.2 or later and Node.js; use the provided script to configure network binding and start the service. Pairing requires generating credentials, then scanning with the corresponding APK sideloaded on the phone or entering the verification code. Accessing the settings page requires an SSH tunnel. Observe security restrictions, avoid exposing the service to the public internet, and back up security files to avoid having to re-pair.
Read MoreDSH Android: Streaming and Controlling Android Devices in Conversations
DSH Android is a DeepSeek Harness client plugin maintained by ZSeven-W, which displays real-time screen feeds from emulators or USB-connected phones in the conversation sidebar via adb and provides 20 agent tools. These tools cover capabilities such as device enumeration, streaming initialization, UI interaction, Gradle build and execution, uiautomator control tree, logcat, and process debugging. The installation command is `dsh plugin --profile web add @zseven-w/dsh-android@latest`, requiring Node ≥ 24.11.0 and adb; the OCR tool is only available on macOS. The plugin runs with DSH process permissions, and users are advised to verify the source code and MIT license before installation.
Read MoreDeploying Baidu Wenxin 4.5 Open-Source Large Model on AiStudio for Android Call
In the previous article "Deploying theERNIE 4.5 Open-Source Model for Android Device Calls", the blogger introduced how to deploy the ERNIE 4.5 open-source large language model on one's own server. However, for students without GPU servers, this approach is out of reach. Therefore, this article will introduce how to leverage the computing power on AiStudio for free to deploy the ERNIE 4.5 open-source large model for personal use.
Read MoreDeploying Custom Gesture Recognition Models with MediaPipe on Android
This project implements a high-performance real-time gesture recognition Android application based on the Google MediaPipe and Android CameraX technology stacks. It adopts MediaPipe's latest Gesture Recognition API, supporting the recognition of various gesture types, including common gestures such as thumb-up, victory sign, and open palm. Additionally, it features real-time hand key point detection and drawing functionality.
Read MoreCustom Gesture Recognition Training Model with MediaPipe
MediaPipe is an open-source framework developed by Google for building perception pipelines to process time-series data such as video and audio. Among its components, MediaPipe Hands is a high-performance hand key-point detection solution capable of real-time hand key-point detection on mobile devices.
Read MoreImplementing Image Classification on Android Phones Based on TNN
This project is mainly an image classifier based on TensorFlow Lite, which can achieve real-time image recognition on Android devices. Its main functions and implementation steps are as follows: ### Project Structure - **MainActivity.java**: Implements gallery image selection and real-time camera prediction on the main interface. - **MNNClassification.java**: Integrates and encapsulates MNN model-related operations. ### Implementation Ideas 1. **Initialization**:
Read MoreImage Classification on Android Phones Based on MNN
This is a detailed guide on how to implement image classification in an Android application. You have successfully used TensorFlow Lite for image classification and demonstrated how to obtain input data through two methods: calling the camera and selecting images, and then passing this data to the model for prediction. ### Summary of Main Content 1. **Model Initialization**: First, load the pre-trained `mobilenet_v2_1.0_224.tflite` model and create a classifier instance. 2. **Reading Images and Pro
Read MoreFace Detection, Key Point Detection, and Mask Detection on Android with One Line of Code
This paper introduces the method of implementing face detection, key point detection, and mask detection in Android applications using Paddle Lite. The core code is only one line: calling `FaceDetectionUtil.getInstance().predictImage(bitmap)` can complete multiple functions. Behind this line of code, it involves model training and compilation, including face detection (`pyramidbox.nb`), face key point detection (`facekeypoints.nb`), and mask classification (
Read MorePerson Background Replacement on Android Based on Image Semantic Segmentation
Your project has already implemented basic human image recognition and background replacement functions. To further improve and optimize your code, I will provide some improvement suggestions and sample code. ### 1. Improve the processing flow of predicted images During the conversion of prediction results to images, you can consider using the constructor of `Bitmap.createBitmap` to create a bitmap directly from the array, which can reduce the creation of unnecessary temporary objects. Additionally, when drawing a transparent background, you can directly use `Canvas` and `Paint` to set the background transparency.
Read MoreImplementing Image Classification on Android Phones Based on Paddle Lite
Thank you for sharing this Android application development example for image classification based on Paddle Lite. Your project not only covers how to obtain categories from images but also introduces methods for real-time image recognition through the camera, enabling users to quickly understand information about the captured object in practical application scenarios. Below, I will further optimize and supplement the content you provided and offer some suggestions to improve the user experience or enhance code efficiency: ### 1. Project Structure and Resource Management Ensure the project has a clear file structure (e.g., `assets/image
Read MoreImplementation of Image Classification on Android Phones Based on TensorFlow Lite
This project mainly implements an image classification application based on TensorFlow Lite, which can perform object recognition using images from the camera or photo album on an Android device and provide real-time prediction functionality. The following is a detailed analysis of the core steps and key code of this project: ### Project Structure - **TFLiteModel**: Contains model-related configurations. - **MainActivity**: The main interface for launching the camera or selecting images for classification. - **RunClassifier** (Note: The original text seems to be incomplete here, so the translation preserves the placeholder as is.)
Read MoreUsing Mediapipe Framework on Android
Your implementation is very close to completion, but to ensure everything works properly, I will provide a more complete code example with some improvements and optimizations. Additionally, I will explain the role of each part in detail. ### Complete Code First, we need to import the necessary libraries: ```java import android.content.pm.PackageManager; import android.os.Bundle; import android.view.Surfa ``` (Note: The original code snippet appears to be incomplete here, as the `Surfa` import is likely cut off, probably intended to be `SurfaceView` or similar view-related class. The translation assumes the code continues with standard Android view setup and functionality.)
Read MoreImplementing Binocular Range Measurement on Android
This tutorial provides a detailed introduction to using the dual-camera of an Android device for object distance measurement. Below are the summaries and further optimization suggestions: ### Project Overview 1. **Background**: This document introduces an Android-based binocular vision system designed to calculate and display the specific 3D coordinates of objects in images. 2. **Purpose**: To obtain left and right eye perspective data through the camera and utilize Stereopsis technology (i.e., stereoscopic disparity method) to compute depth information. ### Project Structure 1. **Image Processing and Segmentation**
Read MoreBuilding a Smart Assistant Quickly with AIUI on Android
This article introduces how to quickly build a smart assistant similar to Xiaomi's AI Assistant. First, create an application using AIUI (a full-stack human-computer interaction voice solution launched by iFlytek), select the Android platform, and enable the semantic understanding function. Then, add a personalized character and various skills in the skills, and configure fallback responses and text-to-speech. Next, develop an Android application: download the AIUI SDK and copy the dynamic library to the corresponding folder. Modify the APPID in `aiui_phone.json`, run the project for testing, and finally demonstrate a case implemented through this method.
Read MoreDetecting if a User is Speaking Using WebRTC in Android
This article introduces how to implement voice activity detection (VAD) using WebRTC in an Android application. First, an Android project is created, and the `local.properties` file is modified to add the NDK path. A `CMakeLists.txt` file is then created in the `app` directory to configure the compilation environment. Next, necessary configuration items are added to the `build.gradle` file. Subsequently, the WebRTC source code is cloned, and the required VAD
Read MorePaddlePaddle From Beginner to "Alchemy" - Part 15: Deploying Prediction Models to Android Phones
Thank you for your sharing and detailed notes, which provide a great reference for developers who want to learn how to integrate PaddlePaddle for image recognition in Android applications. Below, I will summarize the information you provided and add some content that may help with understanding: ### 1. Environment Preparation - **Development Environment**: Ensure the latest version of Android Studio is installed. - **Permission Configuration**: Add necessary permissions in `AndroidManifest.xml`, such as read and write access to external storage.
Read MoreImplementing Image Classification on Android Phones Using TensorFlow Lite
This tutorial provides a detailed introduction to performing image recognition in Android applications using TensorFlow Lite. It offers clear code examples and step-by-step instructions for each process, from environment configuration and project creation to implementing image capture, model loading, and prediction. Below is a summary and supplement to the content you provided: ### 1. Environment Setup Ensure your system has Java 8, Bazel, and Gradle installed. You can check their installation status using the following commands: ```bash java --version b ```
Read MoreImplementing Image Classification with Tencent's ncnn on Android Phones
The content you shared is very detailed, covering the entire process from Caffe model conversion, optimization using the ncnn library, to integration into Android projects. Below is a summary of your answer and some supplementary suggestions: 1. **Model Conversion**: - Use `net Bender` to convert Caffe models to ncnn format; this is a very practical tool. - During the conversion process, pay attention to parameters such as input/output layer names and whether to use BN layer optimization. 2. **ncnn Library Integration**: - Through `C
Read MoreImplementing Image Classification on Android Phones Using MACE
This is a great tutorial on how to integrate the MACE framework for image recognition in an Android application. You have detailed the entire project implementation process, from the addition of dependency libraries to the specific code implementation, and provided necessary images and reference materials. ### Project Structure Your project's `main` module contains the following files: 1. **build.gradle (Module: app)**: Contains dependency configuration. 2. **AndroidManifest.xml**: Contains... (the original text was cut off here)
Read MoreImplementing Image Classification on Android Phones Using PaddleMobile
Your project has covered the complete process of image prediction using PaddleMobile, including model downloading, loading, image preprocessing, and result display. The following are some supplementary explanations for the code and steps: ### Supplementary Explanations #### 1. **Environment Preparation** Ensure the necessary dependencies are installed in the environment where this project will be run: - Install Android Studio. - Configure the Android development environment (Java or Kotlin). - Ensure your device or emulator has an internet connection to download the required models and resources.
Read MoreNotes on "My PaddlePaddle Learning Journey" (14) —— Migrating PaddlePaddle to Android Devices
This article provides a detailed introduction to integrating a trained PaddlePaddle model into an Android application, including steps such as building the PaddleMobile library, using JNI technology in an Android project to call C++ code, and converting images into the input format acceptable by PaddlePaddle for prediction. The following is a summary and supplementary explanation of the article's content: 1. **Environment Preparation**: Ensure your development environment has installed the necessary tools, including Android Studio, Pad
Read MoreDynamic Permission Request for Single or Multiple Permissions in Android
This article details the methods for handling permission requests in Android applications. Specifically, it is divided into several parts: 1. **Application for a Single Permission**: - First, it demonstrates how to check and request a single permission (such as using the camera, writing to external storage, etc.). - Check if the current permission is granted; if not, add it to the list. - If the list is not empty, call the `ActivityCompat.requestPermissions()` method to request these permissions.
Read MoreVarious Android Notifications, Dialogs, Toasts, and Snackbars
This article introduces four common notification methods in Android applications: Notification, Dialog, Toast, and Snackbar. Notification is used to display important notifications in the status bar, with customizable effects such as ringtones and vibrations; Dialog provides dialog box operations, divided into ordinary prompt boxes and dialog boxes with input options; Toast only briefly displays information on the screen without interfering with the user's current operation; Snackbar pops up a concise message below a specified View, suitable for prompting lightweight operation results. Each method... (Note: The original text cuts off at "Each method"—if there was more content beyond that, please provide the full text for accurate translation.)
Read MoreView Animation in Android
TranslateAnimation translateAnimation = new TranslateAnimation( A
Read MoreSaving Account and Password Using SharedPreferences in Android
This example demonstrates how to use `SharedPreferences` to save a user's account and password with simple encryption for enhanced security. The main steps of the code are as follows: 1. **Layout Initialization**: Obtain the input fields (`EditText`), buttons (`Button`), and the `SharedPreferences` object used for storing data from the interface. 2. **Reading Stored Data**: When the Activity starts, retrieve data from the `SharedPreference`
Read MoreLearning Notes on OKHttp3, an Android Network Framework
This is a complete project for fetching and displaying network images using HTTP GET and POST requests in Android, as well as saving these images to the SD card. The project involves basic network communication, thread handling, and UI updates via Handler, among other key knowledge points. Here are the detailed steps of the project: 1. **Permission Setup** - Add the necessary permissions in the `AndroidManifest.xml` file: ```xml <uses-permission android:
Read MoreAndroid Booting and Startup
The article introduces the steps and code implementation for achieving the boot - start function using broadcast receivers in Android. First, create a BroadcastReceiver class through Android Studio. Then, register this BroadcastReceiver in the <receiver> element in the manifest file, and add the attributes android:enabled="true" and android:exported="true" to ensure its availability. At the same time, in the <intent - filt
Read MoreImplementation of an Android Drawing Board
This article introduces how to implement a simple drawing board function. The layout includes three buttons and an image for operation and display. The key part in the Java code is the touch event handling of ImageView. When pressed, the starting point coordinates are recorded; when sliding, a straight line is drawn on the canvas and the image is updated; when released, the ending point coordinates are recorded. In addition, the program also provides color and thickness adjustment functions (implemented through buttons) and a function to save the image. When the user clicks the "Save Image" button, the current Bitmap is saved as a PNG file, and a success prompt message is displayed. Overall,
Read MorePlaying Music with Android Service
This article introduces the method of implementing a music player using a Service. First, a custom Service named MusicService is created, and related operations of MediaPlayer are implemented within it. Then, in MainActivity, the Service is bound to control music playback, including functions such as play and pause, and the progress bar can be updated in real-time. In addition, the article also mentions how to load audio files from the network and adds necessary permission declarations. Throughout the implementation process, time-consuming operations such as preparing audio resources are moved to the background.
Read MoreImplementing WeChat-Style Bottom Navigation with Fragments in Android
You have successfully implemented a simple bottom navigation bar, where each tab corresponds to a Fragment. This is a common feature in Android applications. Below are some supplementary explanations and suggestions for your code and workflow: ### Code Structure Summary - **MainActivity**: Responsible for loading and switching between different Fragments. - **Four Fragments** (WeiXinFragment, ContactFragment, FindFragment, M
Read MoreDisplaying Network Images Directly on ImageView in Android
This code demonstrates how to implement image network downloading and local caching functionality in an Android application. The following is a detailed analysis of the code: ### 1. **Network Image Download** #### a. Obtain Image URL ```java String url = "https://pic.cnblogs.com/avatar/1142647/20170416093225.png"; ``` #### b. Create `BitmapWorker` Class
Read MoreReading SMS and Contacts on Android
This tutorial explains in detail how to read SMS and contact information in an Android application. To help you better understand and practice, I will organize and simplify these steps and provide some improvement suggestions. ### 1. Accessing SMS #### Steps: - Ensure the following permission is added in `AndroidManifest.xml`: ```xml <uses-permission android:name="android.permission.READ_SMS"/> ```
Read MoreLog.d() Not Outputting in Android Debugging
The article discusses the differences in log output between real devices and emulators during Android application debugging. The author found that when debugging on a real device, the logs from Log.d() were not printed, and only error logs could be seen, whereas in the emulator, all levels of logs were displayed normally. The reason is that some mobile phone manufacturers restrict the output of low-level logs. Therefore, the author proposes a solution: creating a `LogUtil` utility class to wrap the Android Log methods. This class decides whether to print corresponding log entries by judging whether it is a debug environment and the current log level, allowing flexible control over... (Note: The original text seems to be cut off at the end, so the translation ends here as per the provided content.)
Read MoreReceiving and Sending Cookies in Android
This article author shares the difficulties encountered when implementing automatic login on the web using Okhttp3 and provides solutions. By default, Android does not save cookies, so it is necessary to manually save the obtained cookies into SharedPreferences; at the same time, read the cookies from SharedPreferences and add them to the request headers in each request. The specific steps include: defining constants ISLOGINED and COOKIE; writing the saveCookiePreference() method to save
Read More