Make a call from a BlackBerry device application (multi-line environment)

  1. Import the required classes and interfaces.
    import net.rim.device.api.system.RadioException;
  2. Invoke initiateCall() to use a specific phone line to make a call. For the destination number, pass in a hard-coded number or user text. In the following code sample, the application makes a call to the destination number 519-555-0100 and uses the line ID that returns at index 0.
    Phone.initiateCall(Phone.getLineIds()[0], "519-555-0100");

Was this information helpful? Send us your comments.