12-04-2008 04:58 PM
Is it possible for me to have two application on the blackberry and through one invoke another and pass some arguments? I looked at the invoke class but it seems like you can only invoke some of the native applications/functions on the device.
Is there some other way that if a user does certain thing in application #1 which will invoke application #2?
12-04-2008 05:15 PM - edited 12-04-2008 05:16 PM
You can start another application using the ApplicationManager class on the Blackberry (see the API Docs).
However, the ability to pass parameters was removed from the API in version 4.6 and later.
I imagine this is why Peter asked about the OS level that you are targeting.
12-04-2008 05:20 PM
I just took a look at the ApplicationManager and sees that i can use ApplicationManager.runApplication(app descriptor) but i don't see one that i can pass arguments to. Also is there a reason why they removed the functionality in 4.6 and later?
12-04-2008 06:25 PM - edited 12-04-2008 06:28 PM
I'm guessing that it is some kind of potential security issue. Sure was not a very popular decision around here!
Now, if the application you are starting belongs to you, then just send a GlobalEvent to the new app. You can listen for the event and retrieve your arguments this way by implementing GlobalEventListener on the target applicaition.
12-08-2008 02:31 PM
Here are some examples of how to launch applications.
How To - Launch a third-party application from another third-party application
Article Number: DB-00455