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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
rajani_dhawan
Posts: 55
Registered: ‎05-30-2011
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!
Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011

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.

Please use plain text.
Developer
rajani_dhawan
Posts: 55
Registered: ‎05-30-2011
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......)

 

 

 

 

 

Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
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
Please use plain text.