Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
zelbi
Posts: 14
Registered: ‎08-30-2009
My Device: Not Specified

Show Pausing dialog

Is there a way to show the Pausing dialog as when you dial a number with comma after the number : +1xxxxxxxxx , xxxxxxx default trace when the dialog is displayed : FocusHistory: Focus lost; App net_rim_bb_phone_app; Component net.rim.device.apps.internal.phone.api.ui.DTMFEchoField FocusHistory: Focus gained; App net_rim_bb_phone_app; Component net.rim.device.apps.internal.phone.api.AfterDialToneHandler$DTMFPauseStatus JVM: bklt @204914: timer JVM: bklt[1] @204914: idle 15 JVM: bklt @204914: setTimer 15 FocusHistory: Focus lost; App net_rim_bb_phone_app; Component net.rim.device.apps.internal.phone.api.AfterDialToneHandler$DTMFPauseStatus i try to use sendDTMFTone, but comma isn't supported. Possible or not ? Thanks in advance
Please use plain text.
New Developer
zelbi
Posts: 14
Registered: ‎08-30-2009
My Device: Not Specified

Re: Show Pausing dialog

I try with sendDTMFTones(), but it doesn't work or I have something wrong.

I implement a Thread.sleep(2000) instead, but it will be nice to have the Pausing dialog, here's my code :

 

new Thread( new Runnable()
                {
                    public void run()
                    {
                        //send DTMFs
                        final PhoneCall objCurrentCall = Phone.getActiveCall();
                        String PhoneNumber = MyClass.getOriginalCalledNumber();
                        if (PhoneNumber!=null && PhoneNumber.length() > 0)
                        {
                           
                            //pause
                             try
                             {
                                System.out.println("Pausing 2 sec. - start");
                                Thread.sleep(2000);
                                System.out.println("Pausing 2 sec. - end");
                             }
                             catch (Exception objException2)
                             {
                                System.out.println(objException2.toString());
                             }
                        

                            //dtmf
                            char[] Digits = PhoneNumber.toCharArray();
                            for (int i = 0; i < Digits.length; i++)
                            {
                                System.out.println("SEND DTMF " + Digits[i]);
                                objCurrentCall.sendDTMFTone(Digits[i]);
                                try { Thread.sleep(600); } catch (Exception objException) {}   
                            }
                           
                           
                        }
                    }
                }).start();
               

It's working,but it will be more pretty with sendDTMFTones.

Please use plain text.