I've seen couple of threads on this, and want to share w/ people that w/ API 3.7, you can call the phone application from your own app.
The trick that i have not figure out is the how to call the app and have it call a number that you can pass in. Play around w/ the "args" variable in the code (see below)...
Here is the code:
Code:
public boolean gotoPhoneAppxxx40;xxx41;xxx123;
boolean retval = true;
int handle = CodeModuleManager.getModuleHandlexxx40;"net_rim_bb_phone_app"xxx41;;
if xxx40;handle <=0 xxx41; xxx123;
retval = false;
xxx125; else xxx123;
ApplicationDescriptorxxx91;xxx93; phoneDescriptors = CodeModuleManager.getApplicationDescriptorsxxx40;handlexxx41;;
if xxx40;phoneDescriptors == null xxx41; xxx123;
retval = false;
xxx125;
else
xxx123;
if xxx40; phoneDescriptors.length <=0 xxx41; xxx123;
retval = false;
xxx125; else xxx123;
Stringxxx91;xxx93; args = xxx123;"call","",""xxx125;;
ApplicationDescriptor descriptor = new ApplicationDescriptor
xxx40;
phoneDescriptorsxxx91;0xxx93;,
"phone", args,
null, -1, null, -1,
ApplicationDescriptor.FLAG_SYSTEM
xxx41;;
try
xxx123;
ApplicationManager.getApplicationManagerxxx40;xxx41;.runApplicationxxx40;descriptorxxx41;;
xxx125;
catchxxx40;ApplicationManagerException exxx41;
xxx123;
retval = false;
xxx125;
xxx125;
xxx125;
xxx125;
return retval;
xxx125;
[Edit by Mark Rejhon: Added [code] tags to make your source code more readable]