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

New Original 5pcs 2SB649A & 5pcs 2SD669A Pair Transistor HSB649A & HSD669A
$3.55
New Original 5pcs 2SB649A & 5pcs 2SD669A Pair Transistor HSB649A & HSD669A picture15 Pcs MAC97A6 97A6 Bi-directional Triac Thyristor 600V 1A
$9.63
15 Pcs MAC97A6 97A6 Bi-directional Triac Thyristor 600V 1A pictureBC847BPN transistor SMD NXP RoHS (9340 425 30115) taped (300x)
$10.0
BC847BPN transistor SMD NXP RoHS (9340 425 30115) taped  (300x) pictureBC847BPN transistor SMD NXP RoHS (9340 425 30115) factory sealed reel of 3k pcs.
$90.0
BC847BPN transistor SMD NXP RoHS (9340 425 30115) factory sealed reel of 3k pcs. picture100PCS S8050D S8050 8050 NPN Transistor 40V 0.5A TO-92 NEW
$1.09
100PCS S8050D S8050 8050 NPN Transistor 40V 0.5A TO-92 NEW picture






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