04-14-2009 12:24 PM
Dear all,
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 ?
Thanks
Wael Nabil
04-15-2009 05:36 AM
Hi,
1.
PhoneArguments pA = new PhoneArguments(ARG_CALL, numberToCall);
Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, pA));
2.
ask returns an int value of the selected choice!
Regards,
Jochen
04-15-2009 09:20 AM
Dear ,
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
Thanks
Wael Nabil
04-15-2009 02:11 PM
protected boolean keyDown(int keycode,
int time)
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.
Thanks
Wael Nabil
04-20-2009 03:12 AM