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

Press again to exit the Application - Example

2 Answers 98 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Markus
Top achievements
Rank 2
Markus asked on 08 Nov 2013, 06:35 AM
Good day to all of you 

I have some apps that will display a message- Press again to exit the Appclication - when using the back putton on the Android phones.

Can I catch the press of that button with cordova and if so anyone has an example of an implementation.

Kind regards
Markus

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Nov 2013, 01:31 PM
Hi Markus,

Yes, you can catch the back button of Android devices, for more information refer to the Cordova API documentation. It contains a sample code snippet that shows how it is accomplished.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Markus
Top achievements
Rank 2
answered on 12 Nov 2013, 01:52 PM
Dear Steve

Once more thank's for pointing me in the right direction.

Is the back button in the simulator working? Because it works when published to phone but not in simulator.

Markus
Tags
General Discussion
Asked by
Markus
Top achievements
Rank 2
Answers by
Steve
Telerik team
Markus
Top achievements
Rank 2
Share this question
or