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
Developer
Cheetah
Posts: 142
Registered: ‎12-15-2008
My Device: Not Specified

How can I programmatically close a running app that's not mine?

Is it possible to send some sort of message to another running app telling it to close? Could some of you RIM guys please help me out with this?
Thank you.
Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How can I programmatically close a running app that's not mine?

I don't think there is any way to do this.

 

Of course, if you have control over the other application, you could implement a simple global event message to tell the other application the end.

 

 

 

 

Please use plain text.
Developer
Cheetah
Posts: 142
Registered: ‎12-15-2008
My Device: Not Specified

Re: How can I programmatically close a running app that's not mine?

i see. Hmm... there's got to be a way to do it. So there's no way to get some kind of handle to another program and inject an escape key or something into it? Anything like that?
Please use plain text.
Elite II
tanzim
Posts: 9,321
Registered: ‎04-01-2008
My Device: Torch 9800
My Carrier: grameenphone

Re: How can I programmatically close a running app that's not mine?

This idea is already there with some application like Berry Locator. In that apps when your device is lost just send a message with some predefined subjects and the apps understand that and respond accordingly. This depends on the software vendors whether they want to have it or not.

 

tanzim                                                                                  
If your query is resolved then please click on Accept as Solution

Click on the LIKE on the bottom right if the post deserves credit

Please use plain text.
Developer
Cheetah
Posts: 142
Registered: ‎12-15-2008
My Device: Not Specified

Re: How can I programmatically close a running app that's not mine?

Thanks. And what is the mechanism for sending this kind of message? Is it a global event or something like that? Sorry I'm a newbie to BB.
What I'm trying to do is close apps. For example lets say you have 7 programs running and instead of selecting them all and closing them you would just
run this app and it would close them for you.
Please use plain text.
Developer
simon_hain
Posts: 16,001
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: How can I programmatically close a running app that's not mine?

this is not possible, you have no way to end a program that is not yours.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: How can I programmatically close a running app that's not mine?

[ Edited ]

i dont know about how to send a message but ... i am able to close an application that is not mine ... u need a background application that checks the application which u want to close that either it is open or not ??? and then it closes it ... using event injector class

Please use plain text.
Developer
StevenKader
Posts: 635
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: How can I programmatically close a running app that's not mine?

Even if you figured out how ... I am pretty sure it wouldn't be approved for sale on App World.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Please use plain text.
Developer
Developer
CMY
Posts: 1,122
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: How can I programmatically close a running app that's not mine?

They would allow it, many if not all of the "app blockers" that require you to use passwords to open certain apps work in this manner.
Please use plain text.
Developer
StevenKader
Posts: 635
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: How can I programmatically close a running app that's not mine?

I'm pretty sure the app blockers just block the app with a global screen and lock all input....they can't kill the app.

Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Please use plain text.