Hi!
I am trying to place a phone call from within an application on a 7100t (t-mobile).
I used to do that in older blackberries calling the browser with an address of tel:(number). This doesn't work on 7100t anymore because now we're supposed to use the phone invokation API.
unfortunately the API doesn't work on the actual device (it works on the simulator). Even running the example application that RIM supplies results in a "Could not start internal application" exception.
So bassically this doesn't work on the actual device (7100t) albeit it works fine on the simulator.
Any ideas/suggestions ?
Code:
import net.rim.device.api.system.*;
import net.rim.device.api.ui.*;
import net.rim.blackberry.api.invoke.*;
public class PhoneInvokerApp extends UiApplication
xxx123;
public static void mainxxx40; Stringxxx91;xxx93; args xxx41;
xxx123;
Application app = new PhoneInvokerAppxxx40;xxx41;;
app.invokeLaterxxx40; new WorkerThreadxxx40;xxx41; xxx41;;
app.enterEventDispatcherxxx40;xxx41;;
xxx125;
public PhoneInvokerAppxxx40;xxx41;
xxx123;
// Do nothing
xxx125;
public static class WorkerThread extends Thread
xxx123;
public void runxxx40;xxx41;
xxx123;
// Create the PhoneArguments.
PhoneArguments arguments = new PhoneArgumentsxxx40; PhoneArguments.ARG_CALL, "5198887465" xxx41;;
//PhoneArguments arguments = new PhoneArgumentsxxx40;xxx41;;
Invoke.invokeApplicationxxx40; Invoke.APP_TYPE_PHONE, arguments xxx41;;
System.exitxxx40; 0 xxx41;;
xxx125;
xxx125;
xxx125;