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
Developer
Posts: 553
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor
Accepted Solution

Placing a call with PhoneArguments

I am using this piece of code to place a call:

 

         PhoneArguments pa = new PhoneArguments(PhoneArguments.ARG_CALL, ExchangeNumber);
         Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, pa);

 

The ExchangeNumber starts with  "08" (zero eight)  for Stockholm. When the call is placed the dialed number is

prefixed with "1"  (one) so it starts with "108"

 

Why??

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Developer
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: Placing a call with PhoneArguments

hi,

 

may be you are not appending the country code before area code, that is why its appending by default may be the US country code. follow this format:

 

+1-519-888-7465 (Country code- area code- number)

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();
Developer
Posts: 553
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Re: Placing a call with PhoneArguments

I used the format

 

+46845454512

 

and it seemed to work. A bit confusing on the simulator, the popup box where you can simulate an answer says

0114645454512. The plus sign seems to be convertered

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Highlighted
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Placing a call with PhoneArguments

Sorry for bumping already solved ticket...

 

but I believe there is more to be added.

 

The 'Smart dialing' feature adds the country code if you set it like that.

 

See: Phone log->Options->Smart dialing



"Listen carefully, I shall say this only once"