Skip to main content

current

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

Report the app currently in the foreground, as a package name or bundle id. These call app_current.

current​

public String current()

The package name or bundle id of the foreground app.

Costs no extra device call: it reads the hierarchy a snapshot fetches anyway. Use it to confirm a tap went where you expected.

@return the foreground app's package name or bundle id

Examples​

Ask which app is in front​

String app = device.current(); // e.g. "com.android.settings"

The same call from the command line, mobium current, printed on an Android 15 emulator:

com.android.settings