Hi,

I want to show some alert message when some one clicks on back button.

Actually I am using it in a class which extends TabActivity.

I implemented the kode as

public boolean onKeyDown(int keyCode, KeyEvent event)
        {

                System.out.println("(onKeyDown) is called in
RadioChannelsInfo.java");
                System.out.println("(onKeyDown) is called in
RadioChannelsInfo.java");
                System.out.println("(onKeyDown) is called in
RadioChannelsInfo.java");
                System.out.println("(onKeyDown) is called in
RadioChannelsInfo.java");
                System.out.println("(onKeyDown) is called in
RadioChannelsInfo.java");
                System.out.println("keyCode ->"+keyCode);
                System.out.println("event"+event);


                showDialog(DIALOG_YES_NO_MESSAGE);


                return true;
        }


it shows the dialog message when I click on right and left keys of the
mobile (emulator), but when I click on up, down and back button.

I want the dialog message should up when we click on keypad's back
button.

How should I do?

Can any one please help me?

Thanks,
Manoj.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to