BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-23-2010, 06:54 AM   #1 (permalink)
New Member
 
Join Date: Feb 2010
Model: 8900
PIN: N/A
Carrier: SoftEng
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Open a doc file saved in SDCard using WordToGo programmatically?

Please Login to Remove!

Hi,

I am developing an application, i need to open a doc file saved in SDCard using WordToGo App from my application, I am able to Launch the WordToGo Application using ApplicationManager, but unable open the exact doc file during Launch... can anybody help me with sample code??? its urgent...

Thank you.
Regards,
Ravi.
Offline  
Old 02-23-2010, 07:29 AM   #2 (permalink)
New Member
 
Join Date: Feb 2010
Model: 8900
PIN: N/A
Carrier: SoftEng
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The below is the code i am using... hoping somebody will help me here...

ApplicationManager manager = ApplicationManager.getApplicationManager();
int modHandle = CodeModuleManager.getModuleHandle("WordToGo");

ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHan dle); ApplicationDescriptor descriptor = apDes[0];
String[] args = {"file:///SDCard/documents/hello.doc"};

ApplicationDescriptor newDescriptor = new ApplicationDescriptor(descriptor, descriptor.getName(), args);

try {
manager.runApplication(newDescriptor);
} catch (ApplicationManagerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

50pcs 4.7uF 35V NIC NACZ 35V4.7uF 4X6.3mm SMD LOW IMPEDANCE Capacitor
$3.99
50pcs 4.7uF 35V NIC NACZ 35V4.7uF 4X6.3mm SMD LOW IMPEDANCE Capacitor picture10pcs 50V 560uf 50V SANYO AX 12.5X25mm Low Impedance Long life Capacitor
$3.49
10pcs 50V 560uf 50V SANYO AX 12.5X25mm Low Impedance Long life Capacitor pictureSanyo 109S072UL 91-8478 Impedance Protected Fan 230 VAC 918478 San Ace
$21.99
Sanyo 109S072UL 91-8478 Impedance Protected Fan 230 VAC 918478 San Ace picture20pcs 35V 220UF 35V SANYO WX 8X15mm Low Impedance High Ripple Capacitor
$3.09
20pcs 35V 220UF 35V SANYO WX 8X15mm Low Impedance High Ripple Capacitor picture10pcs 220uf 6.3V220UF Nichicon HV 5x11mm Low Impedance Motherboard Capacitor
$1.49
10pcs 220uf 6.3V220UF Nichicon HV 5x11mm Low Impedance Motherboard Capacitor picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.