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
Highlighted
Contributor
Posts: 14
Registered: ‎04-28-2012
My Device: na
My Carrier: na
Accepted Solution

Invoking phone call, a plus sign is automatically added!

Hi,

Im trying to invoke a phone call using this code:

PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL, phoneNumber);
				Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);

 The phone number is 11 digits local phone number (8xxxxxxxxxx).

The system adds a '+' prefix to my number and the call will fail.

How to tell the system not to put that '+' sign and use the number as it is.

Thanks.

Developer
Posts: 228
Registered: ‎10-01-2011
My Device: Passport

Re: Invoking phone call, a plus sign is automatically added!

You need to disable smart dialing like this:

 

 PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL, phoneNumber, false );

 

Chris

 

Contributor
Posts: 14
Registered: ‎04-28-2012
My Device: na
My Carrier: na

Re: Invoking phone call, a plus sign is automatically added!

Thanks