This is a migrated thread and some comments may be shown as answers.

Handle back button of android phone

1 Answer 121 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aman
Top achievements
Rank 1
Aman asked on 24 Mar 2014, 10:17 AM
Hi,
I have some code which i want should execute when the back button on mobile phone is pressed.
How to achieve the same?

Regards,
Aman

1 Answer, 1 is accepted

Sort by
0
Pavel Kolev
Telerik team
answered on 24 Mar 2014, 01:15 PM
Hello Aman,

You can use the following event listener to track the usage of the back button:

document.addEventListener("backbutton", onBackKeyDown, false);


Regards,
Pavel Kolev
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

 
Tags
AppBuilder extension for Visual Studio
Asked by
Aman
Top achievements
Rank 1
Answers by
Pavel Kolev
Telerik team
Share this question
or