03-09-2013 01:53 AM - edited 03-09-2013 01:55 AM
Hello,
I want to know the sample code for Emergency exit Red Botton. I want to perform some action if red button is pressed on ACTION Bar..
Thanks.
URL of that Image is given below:
https://skydrive.live.com/redir?resid=1E8F82E79864
03-09-2013 01:57 AM
Red call cancel button
03-09-2013 02:01 AM
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution!
03-09-2013 03:26 AM
Thanx Krypto for your reply,i got the solution. It is possible to perform our desired action on RED Button. Sample code is given below:
protected boolean keyDown(int keycode, int time)
{
//keycode for green button
if (keycode == 1114112)
{
return true;
}
////keycode for red button
else if (keycode == 1179648)
{
Dialog.alert("Emergency Exit");
}
else
{
return super.keyDown(keycode, time);
}
return true;
}
03-09-2013 08:45 AM
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution!