Test apps on Android Part of Android Jetpack.
Testing your app is an integral part of the app development process. By running tests against your app consistently, you can verify your app's correctness, functional behavior, and usability before you release it publicly.
Testing also offers the following advantages:
- Rapid feedback on failures.
- Early failure detection in the development cycle.
- Safer code refactoring, allowing you to optimize code without worrying about regressions.
- Stable development velocity, helping you minimize technical debt.
Documentation
The documentation covers best practices around testing Android apps:
- Fundamentals of testing Android apps
- Build local unit tests that run on the host
- Build instrumented tests that run on devices or emulators
- Verify UIs with Behavior and Screenshot tests
- Test different screen sizes
Additional resources
For more information about testing on Android, consult the following resources.
Samples
- Android testing samples
- Now In Android demo app, which makes use of the Android testing libraries.
Codelabs
Media
Mir 2 improves rendering performance by using the Frame Pacing library
Mir 2: Return of the King is a high-quality Legend IP mobile game authorized by Actoz Soft and developed by HK ZHILI YAOAN LIMITED using the Unity game engine. This game not only perfectly recreates the feelings of Mir 2, a representative of Korean
Kuro Games reduces 9.68% power consumption through Android Studio Power Profiler and ODPM for Wuthering Waves
Wuthering Waves is a high fidelity action RPG game developed by Kuro Games. Optimizing the power consumption is very important to sustainably deliver a premium user experience for long gaming sessions. Android Studio introduced the Power Profiler
Godot Engine Vulkan optimization for Android
Godot Engine is a popular multiplatform open-source game engine with robust support for Android. Godot can be used to create games of virtually any genre and is capable of both 2D and 3D graphics. Godot version 4 introduced a new rendering system
Getting started with Android Dynamic Performance Framework (ADPF) in Unreal Engine
Android Dynamic Performance Framework (ADPF) is a powerful tool from Google for developers who want to optimize the performance of their applications. Through its thermal APIs, ADPF provides real-time information about the thermal state of the
NCSoft Lineage W improves sustained performance and prevents thermal throttling by using ADPF
NCSoft Lineage W is a massively multiplayer online role-playing game (MMORPG) developed by NCSoft. This game inherits the legacy of the original Lineage W game and offers an environment where players from around the world can cooperate and compete
MediaTek enhances dynamic performance of Android SoCs
Improving performance and thermal management is essential for developing successful games on Android. Traditionally, developers had to manage these issues by decreasing game fidelity or by further optimizing the renderer. These changes tend to be
Call of Duty Warzone Mobile uses Vulkan for better graphics
Call of Duty: Warzone Mobile is a first-person action game in the popular Call of Duty franchise. The mobile realization of the hugely popular console and PC game takes advantage of mobile low-level APIs to deliver a great player experience. From a
Com2uS - Google Play Games for PC
Summoners War: Chronicles is a mobile MMORPG from South Korean game developer Com2uS, released globally in March 2023. To date, Summoners War has earned over $2.7 billion with more than 180 million downloads worldwide. Set in a fantasy world where
Com2uS uses Vulkan for better graphics
Summoners War: Chronicles US(WW) and KR by Com2uS exclusively utilizes Vulkan for rendering on Android, with up to 30% performance improvements. Vulkan is a modern, cross-platform 3D graphics API designed to minimize abstraction between device
Kakao Games increased FPS stability to 96% through Android Adaptability
Ares: Rise of Guardians is a mobile-to-PC sci-fi MMORPG developed by Second Dive, a game studio based in Korea known for its expertise in developing action RPG series. The game is published by Kakao Games. Set in a vast universe with a detailed,
2K reduces ANR rate by 35% with the Android Game Development Kit
Cat Daddy Games is a wholly-owned 2K studio based in Kirkland, Washington and the developer of NBA 2K Mobile. The team wanted to improve the overall quality and stability of their games, specifically by reducing “Application Not Responding” errors
Cookie Run: OvenBreak saves over $200K CDN cost with Play Asset Delivery
Devsisters is a global mobile game developer and publisher, producing casual games based on the Cookie Run IP. Their most popular games include Cookie Run: OvenBreak (running arcade) and Cookie Run: Kingdom (social RPG), which are loved by users
NEW STATE Mobile reduces GPU usage by 22% with Android GPU Inspector
NEW STATE Mobile is a battle royale game from Krafton that launched Nov 2021 worldwide, and reached 45M+ downloads in the first month of launch. KRAFTON, Inc. is a collective of independent game development studios brought together to create
The Witcher: Monster Slayer increases reach with Android Performance Tuner
Based in Poland, Spokko is a group of ambitious creators who are working with a very demanding IP. Although it is part of the CD PROJEKT family, Spokko is an independent company that has transferred the great world of The Witcher: Monster Slayer to
2K delivers higher quality graphics with Play Asset Delivery
Cat Daddy Games is a wholly-owned 2K studio based in Kirkland, Washington. The teams behind the NBA 2K Mobile, NBA SuperCard, and WWE SuperCard series were looking for a solution to improve the overall quality of their games for users, specifically
"AGDE is freaking awesome!" for Android development with Unreal Engine
Unreal Engine is a game engine developed by Epic Games that gives creators across industries freedom and control to deliver cutting-edge entertainment, compelling visualizations, and immersive virtual worlds. Some major Android games are built using
Firemonkeys reduced development and debugging time with AGDE
Electronic Arts (EA) is a game company headquartered in California, USA. It produces a wide variety of games across different genres, such as: sports, action, racing, and simulation. EA's development studio, Firemonkeys, is best known as
CD Projekt RED reduces update size by 90% and increases update rates by 10% with Play Asset Delivery
Based in Warsaw, Poland, game developer CD Projekt RED (CDPR) reimagined their mini-game in The Witcher 3, GWENT: The Witcher Card Game, to launch as a standalone free-to-play title on Google Play in March of 2020. With a large initial file size and
Gameloft acquires 10% more new users with Google Play Asset Delivery
In 2000, Gameloft was created with a passion for games and a desire to bring them to players around the world. They were an early pioneer developing for mobile and now have a portfolio of over 190 games. Many of Gameloft's mobile games
RV AppStudios improves user retention with Google Play Asset Delivery
US-based developer RV AppStudios has over 200 million downloads to date across their portfolio of casual games, educational kids apps, and utility apps. As an early tester of Google Play Asset Delivery with their app Puzzle Kids - Animals Shapes and
Gameloft reduces device power consumption by 70%, resulting in 35% longer play time with the Game Mode API
For more than 20 years, Gameloft has created innovative gaming experiences for digital platforms, from mobile games to cross-platform PC and console titles. In addition to its own established franchises, Gameloft develops games for popular brands
Pixonic grew engagement by 25% on ChromeOS by optimizing for large screens
Pixonic, a team of video game developers headquartered in Moscow, prides itself on pursuing every opportunity to upgrade its mobile apps and reach an even wider audience of gamers. One of the company's best-known titles is War Robots, a 12-person
Gameloft races to 9X more revenue by optimizing for ChromeOS
Gameloft always strives to be among the first developers to publish games on the latest portable hardware in order to provide gamers with heart-pounding experiences on the go. That’s why Gameloft knew ChromeOS was the right home for Asphalt