Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Launch a third-party application from another third-party application

by BlackBerry Development Advisor on ‎02-16-2010 09:49 AM - edited on ‎09-29-2010 09:31 AM by BlackBerry Development Advisor (5,679 Views)

Summary

 

This article applies to the following:

  • BlackBerry® smartphones based on Java® technology

Procedure

 

On the BlackBerry smartphone, you can launch a third-party application from another third-party application. The following code samples demonstrate how this can be done.

 

Launching a Java application from another Java application

 

These examples demonstrate how to launch a Java application from another Java application.

 

Example 1

 

 

int modHandle = CodeModuleManager.getModuleHandle("MyApplication");
ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHandle);
ApplicationManager.getApplicationManager().runApplication(apDes[0]);

 

 

Example 2

 

 

ApplicationManager.getApplicationManager().launch("yourCodFileName?param1&param2");
Note: An application can also schedule another application to be launched at a specific time. This can be done through the use of the ApplicationManager.scheduleApplication method.

 

Contributors
Users Online
Currently online: 31 members 1,076 guests
Please welcome our newest community members: