---
title: "Discussion on \"Detecting the Android Back button in NativeScript\" | Hashnode"
description: "Discussion on \"Detecting the Android Back button in NativeScript\". The Android hardware Back button can be a pain to handle. By default it goes back to the previous route, and when route history ends, it exits the app. It’s not necessarily what you’d like. For example when you open a modal dialog, you may want the B..."
url: "https://hashnode.com/posts/detecting-the-android-back-button-in-nativescript/695f43fee0a4a8b1f3f555d2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Detecting the Android Back button in NativeScript](https://developerrants.hashnode.dev/detecting-the-android-back-button-in-nativescript?utm_source=hashnode&utm_medium=feed)

The Android hardware Back button can be a pain to handle. By default it goes back to the previous route, and when route history ends, it exits the app. It’s not necessarily what you’d like. For example when you open a modal dialog, you may want the B...

Dec 29, 2019 · 3 min read · developerrants.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#hybrid-apps](https://hashnode.com/tag/hybrid-apps)
-   [#nativescript](https://hashnode.com/tag/nativescript)
-   [#angular](https://hashnode.com/tag/angular)

## Written by

[Tamás Polgár](https://hashnode.com/@tomcatmwi)

@tomcatmwi

  
[View profile](https://hashnode.com/@tomcatmwi)

Developer Rants after evacuating Medium

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
