# PRESS\_DEVICE\_BACK\_BUTTON

The **PRESS\_DEVICE\_BACK\_BUTTON** command simulates the physical/system back action on the device. This is essential for navigating through screens, closing modals, dismissing overlays, or returning to previous app states when no visible UI element exists for going back.

**Syntax:** PRESS\_DEVICE\_BACK\_BUTTON

**When to use:**

1. Navigating backward in Android screens where no “Back” icon or UI control is present
2. Closing bottom sheets, popups, dialogs, or fullscreen overlays
3. Exiting nested screens in complex flows


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.drizz.dev/commands-reference/system-command/press_device_back_button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
