12-03-2007, 05: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
| 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
| |