04-14-2009 12:24 PM
I have two Questions:
1- How to initiate phone call.
2- Iam using Dialog.ask and Dialog.inform....if the user press the send key or end key will go out of my application i want to override the keydown function of the default dialog class and handle the keydown action , How to do that ?
04-15-2009 05:36 AM
PhoneArguments pA = new PhoneArguments(ARG_CALL, numberToCall);
ask returns an int value of the selected choice!
04-15-2009 09:20 AM
Thanks for your answer..
About the secound Question seem i didn't success to explain it.
My Question Not about how to get the selected button from this dialog "Yes or No" or like that
My Question about while this dialog is focused the user may click on the Green Send Key which show the Call list and i want to prevent that So is there any way to get the KeyDown event while this Dialog is shown
04-15-2009 02:11 PM
protected boolean keyDown(int keycode,
Just override this method. When you will press, green key, this method will return you the keycode of pressed key. just consume the event on specified key and you will be able to prevent any action on presssing green key.
04-18-2009 04:43 PM
Thanks for the answer
But this will apply only on your screen example you make a class extends MainScreen
but if i show Dialog by Dialog.inform or Dialog.ask this is as another screen over my main screen so it has another keyDown.
my Question is how to override this Dialog keyDown.