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

Radio Frequency & Radar Transmitter
$49.95
Radio Frequency & Radar Transmitter pictureNEW 900' Spool of 68-1936TF Radio Frequency Cable 24AWG 2-Conductor 68 Ohms
$399.99
NEW 900' Spool of 68-1936TF Radio Frequency Cable 24AWG 2-Conductor 68 Ohms picture889A Magnetreater & 206-A Magnet Booster Unit Charger RFL Radio Frequency Labs
$299.99
889A Magnetreater & 206-A Magnet Booster Unit Charger RFL Radio Frequency Labs  pictureRARE * VINTAGE * AMPHENOL CATALOG W1 * RADIO FREQUENCY COAXIAL CABLES AND ...
$9.99
RARE * VINTAGE * AMPHENOL   CATALOG W1 * RADIO FREQUENCY COAXIAL CABLES AND ... pictureWeston Thermo Milliammeter Radio Frequency 492561 No. 301 Communication Gauge
$35.0
Weston Thermo Milliammeter Radio Frequency 492561 No. 301 Communication Gauge picture






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