Testing Android applications

Why mobile app bugs can cost more to fix than web bugs

A mobile app bug can cost more than the code fix alone. You need to get the repaired version to users, help those already affected and check that their data remains intact. A new build in the store does not mean everyone is running the fixed app.

Web fixes are often deployed centrally. Even there, cached files or incompatible clients can remain. Mobile bugs are therefore not always more expensive. The cost depends on the impact, damaged data and recovery options. For Android, you also need to account for Google Play distribution and several app versions running at once.

A fix in the store and a fix on the device are separate steps

A Google Play update goes through a publishing process that may include review. Managed publishing lets you choose when approved changes become available, but does not bypass approval. Your incident plan therefore needs to account for the gap between a ready build and an available fix. Google describes the release states.

A staged rollout makes an update available to a proportion of users, which you can increase after checking results. The percentage does not increase automatically. Halting the rollout stops additional users receiving the update, but those who have installed it keep it. The staged rollout documentation distinguishes stopping distribution from repairing existing installations.

Google Play also allows a fully rolled-out release to be halted on supported testing and production tracks when a previous live release is available. This excludes the internal testing track and first releases with no predecessor. The previous version can become available again to new users and those who have not yet updated. Devices already updated are not automatically downgraded. Check the conditions for halting a fully rolled-out release for the particular track.

What an incident costs

Alongside the development fix, account for reproduction, verification of the new build, distribution and user support. If the bug damaged local data or sent an incorrect request, you also need a way to repair its consequences.

Distinguish a user unable to complete a step from one waiting for synchronisation or one whose action has already created an incorrect server record. A new version can prevent another failure without correcting an existing record. The team should know who owns the app fix and who handles data recovery or customer communication.

A clean installation does not test an upgrade

Consider a model upgrade from version 2.4 to 2.5. The user is signed in and has an unfinished order saved offline. The new version changes both the local database and the request sent to the server.

A fresh installation does not establish whether upgrading preserves that order. Prepare it in the old version, update through the same route as the user and check its content and successful submission when connectivity returns. Also check that retrying does not create a second order.

During the planned overlap, the server must support the agreed behaviour of both old and new clients. If that is impossible, you need a restriction on old versions designed in advance and a clear update process. Uninstalling is not a universally safe recommendation, especially when it could remove data that has not yet been sent. See testing offline behaviour and synchronisation for related scenarios.

What to check before release

Choose devices and Android versions based on the supported environment, actual app usage and affected features. Use this list to agree the expected behaviour:

Scenario What to check
Clean installation Launch, sign-in and completion of the main task
Upgrade from a supported old version Preserved settings and data, and a working migration
Unfinished offline operation Preserved content, synchronisation and duplicate prevention
Expired sign-in session Restored access without losing unfinished work, as defined by the product
Permission denied A clear alternative or explanation of the limitation
Payment or another critical step The result in a test environment, including rejection and interruption

Unit and integration tests can check logic and data transitions. An emulator helps with repeatable scenarios, while a physical device helps verify a particular supported environment. A successful app build alone does not replace these checks. The Android test automation guide describes a practical starting point.

How to decide during a staged rollout

Before releasing, define which signals mean proceed, pause or repair. Monitor crashes and an unresponsive app, but also completion of the main task, server errors and support reports. An app can remain running while rejecting every order.

Compare results by app version and relevant device or operating system groups. An overall average can hide a problem in one group. Android vitals provides data from eligible devices whose users have agreed to share it. It does not capture every incident, and its metrics may use a different denominator from your own analytics.

A small sample without a crash does not establish a safe release. Increase the percentage only after checking the agreed signals and allowing enough time for problems to appear. There is no universally safe user count or observation period without knowing the app.

What to do when a production bug appears

  1. Identify the affected version, devices, steps and data state. Distinguish an app crash from a server failure or unfinished synchronisation.
  2. Stop further distribution of the faulty release if the track supports it. Check which version remains available to other users.
  3. Assess how to help users already affected. Disabling a feature remotely helps only if the installed app supports it. A server change must not break other supported clients.
  4. Verify the fix against the state that triggered the problem, including upgrading the faulty version and repairing data where needed.
  5. Monitor uptake of the fix and completion of the main task. Do not close the incident solely because a new build has been published.

For diagnosis, keep the app version, environment, time and safely collected logs or screen recording. Personal data and payment information do not belong in routine diagnostic attachments.

When an in-app update can help

Android supports flexible updates that download in the background and immediate updates that require an app restart. This mechanism must already be implemented and supported on the device. Even an immediate update does not mean everyone will accept it straight away. The in-app updates overview explains the two flows.

If a bug prevents the app launching before it can show the prompt, you cannot rely on that prompt. Also decide in advance what happens when users decline, have poor connectivity or have unfinished work.

How to start without a large testing project

Review the last three incidents. For each, record the time until detection, fix preparation, fix availability and service recovery for affected users. This helps identify whether the main problem lies in the code, upgrade verification or distribution.

Use the findings to choose a short set of checks before release and rules for halting it. For an app sharing a backend, include web application testing and client compatibility. The aim is to verify a specific user journey and its recovery, without promising that testing will eliminate every bug.

Related topics

You might also be interested in

We will verify the decisive scenarios on real devices

Automated testing of native and hybrid Android applications, with critical runs on physical or cloud devices.