BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-30-2007, 08:32 AM   #1 (permalink)
New Member
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Launch custom app from another app sending parameters

Please Login to Remove!

Hi

I've developed an printing custom application and i wish to invoke with several parameters from another custom application, which sends information to print.

My questions are:

1. Can be invoked the printing application from custom application? If so, how can i do it?

2. Printing application must be a system module for receiving correctly the information to print?

Many thanks.
Offline  
Old 11-30-2007, 09:04 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

see this thread

hth,
simon
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 11-30-2007, 09:31 AM   #3 (permalink)
New Member
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for your quick reply.

I've checked the link and it looks useful.

I'll try to fit to my project, although i've seen how to send parameters.

Last edited by jckidy : 11-30-2007 at 09:34 AM.
Offline  
Old 12-03-2007, 06:54 AM   #4 (permalink)
New Member
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Parameters

If somebody wants to pass arguments into his/her application, the following code should work.
----------------------------------------------------------------------
int modHandle = CodeModuleManager.getModuleHandle("MyApplication") ;
ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHan dle);
String[] args = new String[] {"arg_one","arg_two"};
ApplicationDescriptor appDesc = new ApplicationDescriptor(apDes[0], args);
try
{
ApplicationManager.getApplicationManager().runAppl ication(appDesc);
}
catch(ApplicationManagerException ex) {}
----------------------------------------------------------------------
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





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