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
Posts: 55
Registered: ‎05-30-2011
My Device: BlackBerry torch 9800
My Carrier: Airtel

how can stop a background or system-module's process?

Hi,

 

Is this possible to stop a background process (native application like calendar), through a third-pary application's thread.

 

For ex. I used the name of calendar application as a native application.

 

The problem is : whenever calendar  application comes into foreground, my app's background thread get its process id.....and send it to background.
Now is there any way to stop the process of that calendar  application using its process id later.....programmatically.

 

Thanks!
Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: how can stop a background or system-module's process?

Hi @

 

If you know which application is in the foreground and how a user can close it, you can try and inject a key event to simulate the user actions.

 

E.

Developer
Posts: 55
Registered: ‎05-30-2011
My Device: BlackBerry torch 9800
My Carrier: Airtel

Re: how can stop a background or system-module's process?

@maadani, thanks for ur suggestion

 

But I have already used this method... I am facing problem regarding this.

You can see the details on...

http://supportforums.blackberry.com/t5/Java-Development/global-event-listener-is-not-called-instantl...

 

or if above link not work.....then on....

http://supportforums.blackberry.com/t5/Java-Development/global-event-listener-is-not-called-instantl...

 - on the second last post which I have posted recently (started with...... hi...as my basic requirement was how to close the native......)

 

 

 

 

 

Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how can stop a background or system-module's process?

i don't see how opening new threads about this issue can help you...
----------------------------------------------------------
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