Tagged articles
UIAutomator
26 articles · Page 1 of 1
This guide explains why Android performance matters to users, developers, and business, then walks through Google’s diagnostic tools, R8 optimization steps, continuous monitoring, and a Reddit case study that turned a two‑week effort into a one‑star rating boost.
AndroidApp VitalsJetpack Macrobenchmark
0 likes · 13 min read

This article explains how to keep UIAutomator 1.0 test cases running on Android 11+ by implementing a server‑side ContentProvider, accessing it via reflection from the UIAutomator or shell process, and demonstrates the complete Java code for provider creation and invocation.
AndroidContentProviderCross-Process
0 likes · 10 min read

This article examines Android automation techniques, comparing simple ADB script‑based interactions with native‑code approaches using activity lifecycle callbacks, view identification, and MotionEvent simulation, and discusses their advantages, limitations, and suitable application scenarios.
ADBAndroidNative
0 likes · 8 min read

The article presents a cloud‑driven UIAutomator SDK that automates Android app compatibility testing by handling installation, cold‑start, hot‑start and uninstall steps, dynamically updating dialog‑matching data, and providing robust error‑handling to ensure reliable testing across diverse Android devices.
AndroidCloud ConfigurationUIAutomator
0 likes · 4 min read

The article explains why UIAutomator 1.0 scripts fail on the Android R emulator due to a missing android.test.RepetitiveTest class, analyzes the stack trace to locate the error in UiAutomatorTestRunner, and provides a workaround by manually initializing the test framework via app_process.
AndroidAndroid RNoClassDefFoundError
0 likes · 5 min read

This article introduces Appium's basic element locating techniques—including id, name, class name, XPath, UIAutomator, and relative coordinates—explains how to handle non‑unique elements through iteration or OCR, and demonstrates image‑based locating with OpenCV and screenshot code examples.
AppiumElement LocatingMobile Automation
0 likes · 5 min read

This article demonstrates how to capture a video progress bar in an Android app with UiAutomator, extract its bitmap, analyze the red channel values, and compute the playback percentage for automated test assertions.
BitmapUIAutomatorvideo-progress
0 likes · 6 min read

This article shows how to implement a post‑test reminder for UiAutomator by using screen sleep and wake‑up logic, providing Java code that checks the screen state, re‑activates it if needed, and optionally sets screen brightness via an ADB command.
AndroidJavaScreen Reminder
0 likes · 3 min read

The author shares a practical UiAutomator solution that captures screenshots, extracts bitmap data, and analyzes pixel colors to programmatically determine whether a UI element appears blue, including reusable helper methods for retrieving individual red, green, blue, or full RGB values.
AndroidColor DetectionJava
0 likes · 6 min read

This article explains how to automate the login process for multiple Android channel packages by packaging a Java UiAutomator script into a JAR, pushing it to the device, iterating over each APK, executing ADB commands, and logging success or failure for each login method.
ADBAndroidAutomation Testing
0 likes · 8 min read

This article presents a customizable Java helper class for Android UiAutomator that streamlines test project creation, build modification, APK deployment, and test execution, complete with detailed code, command explanations, and logging utilities for flexible mobile UI testing.
AndroidJavaUI testing
0 likes · 8 min read

This guide shows how to create reusable UiAutomator helper methods that perform long‑press actions on Android UI elements—by resource ID, visible text, or explicit coordinates—using a swipe call with a 300‑step duration, and mentions extending the approach to custom gesture paths.
AndroidLong PressUI testing
0 likes · 3 min read

This article explains how to use UiAutomator scripts combined with Java multithreading to continuously refresh an Android app’s home page while capturing logs and performance metrics, including full code examples for command execution, timestamp handling, and test loops.
ADBAndroidJava
0 likes · 6 min read

This article shares a comprehensive collection of reusable UiAutomator methods—including swipe gestures, screenshot handling, image analysis, UI element lookup, waiting strategies, click actions, scrolling, app launch/stop commands, and miscellaneous helpers—providing Android developers with ready‑to‑use Java code for robust UI automation testing.
AndroidJavaUI testing
0 likes · 21 min read

This guide shows how to automatically change the Android input method to UTF‑7 or any other IME during UiAutomator tests by executing ADB commands, listing available IMEs, and handling command output on both macOS and Windows environments.
ADBAndroidJava
0 likes · 6 min read

When using UiAutomator on macOS you must prepend the full path to the Android command and adjust slash handling, otherwise you encounter "Cannot run program" errors; this guide shows the errors, the required fixes, and provides a complete Java helper class for automated testing.
AndroidJavaUIAutomator
0 likes · 10 min read

When UiAutomator reports controls with bounds [0,0][0,0] and they cannot be clicked, you can compute click positions from a previously‑found element’s size and use those coordinates to tap the left or right half of the target control.
Click CoordinatesUI automationUIAutomator
0 likes · 3 min read

This tutorial shows how to use the polar equation of a heart, convert mathematical coordinates to screen coordinates, and employ UiAutomator's swipe method to draw a heart shape on an Android device using Java.
AndroidGraphicsJava
0 likes · 4 min read

The author encountered unexpected security‑warning pop‑ups during Android UIAutomator testing and created a UiWatcher that automatically clicks "Do not remind" and "Allow" to keep the test flow uninterrupted, sharing the full code for others to use.
AndroidMobileTestingSecurityWarning
0 likes · 2 min read

This guide explains how to use Java's Runtime API within a UiAutomator test to start, filter, and safely terminate an adb logcat process, including a complete Logcat thread implementation and tips for preventing oversized log files.
AndroidJavaThread
0 likes · 8 min read

The article demonstrates a simple Java ThreadTest class that enables concurrent database updates during Android UIAutomator and Selenium‑Java test cases, showing how to control execution with key flags, integrate the thread into test methods, and optionally use join() to avoid exceptions.
JavaMultithreadingTest Automation
0 likes · 4 min read

This article explains how to perform ordered UI traversal of an Android application with UIAutomator on the 360 Open Testing platform, covering required parameters, a seven‑step implementation process, UI change listening via AccessibilityService, element dumping, sorting, comparison methods, interaction automation, and termination conditions.
360 Open TestingAccessibilityServiceAndroid
0 likes · 4 min read

The article details how Baidu MTC designed and implemented a universal Android script testing platform that combines UIAutomator, a custom Clean‑SDK for popup handling, image‑recognition algorithms, and a recording‑playback tool to enable robust, non‑native mobile automated testing across thousands of devices.
AndroidScript RecordingUIAutomator
0 likes · 12 min read

This article introduces SmartMonkey, a custom Android testing solution that overcomes the randomness and inefficiency of the built‑in Monkey tool by using UIAutomator to parse UI hierarchies, select meaningful nodes, and execute controlled actions for more effective stability and functional testing.
AndroidMonkeySmartMonkey
0 likes · 8 min read

This article describes how to employ UIAutomator to automate data extraction from K12 education mobile apps, handling device identity spoofing, image input normalization, and UI control reverse‑engineering to overcome encryption, token checks, and non‑standard input challenges.
Image NormalizationK12 educationUI Reverse Engineering
0 likes · 5 min read

This guide explains practical techniques for spotting basic memory leaks, using the MAT tool to analyze heap dumps, comparing hprof files, and implementing daily leak monitoring in Android apps through AspectJ instrumentation, MLD utilities, and UIAutomator automation.
AndroidAspectJMAT
0 likes · 9 min read
