Skip to main content

AppState

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

What state one app is in: not_installed, not_running, background or foreground — for any app, where app_current names only the one in front. These call app_state.

AppState​

public IDictionary<string, object?> AppState(string app)

One app's state, for any app: state is not_installed, not_running, background or foreground. An app under its own permission prompt is still in front, and covered_by names the prompt's process. On iOS a background app also has suspended.

Examples​

Ask whether an app is running​

var state = device.AppState("com.android.settings");
Console.WriteLine(state["state"]);

The same call from the command line, mobium state com.android.settings, printed on an Android 15 emulator:

com.android.settings is in front