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

Reply
New Developer
Chouman82
Posts: 28
Registered: ‎07-21-2008
My Device: Not Specified

having one applicaiton invokes another

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?

 

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: having one applicaiton invokes another

What OS Level are you using?
Please use plain text.
New Developer
Chouman82
Posts: 28
Registered: ‎07-21-2008
My Device: Not Specified

Re: having one applicaiton invokes another

not sure what exactly you mean
Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: having one applicaiton invokes another

[ Edited ]

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.

 

 

 

Message Edited by RexDoug on 12-04-2008 04:16 PM
Please use plain text.
New Developer
Chouman82
Posts: 28
Registered: ‎07-21-2008
My Device: Not Specified

Re: having one applicaiton invokes another

hey rex,

 

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?

 

 

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: having one applicaiton invokes another

[ Edited ]

Unknown.

 

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.

 

 

Message Edited by RexDoug on 12-04-2008 05:28 PM
Please use plain text.
Administrator
MSohm
Posts: 14,229
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: having one applicaiton invokes another

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

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To_...

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.