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

Android™ Development

Reply
Contributor
Posts: 34
Registered: ‎10-26-2010
My Device: Not Specified

Run android service with startForeground

Hi to all.

In my android application I have a background service that needs to be always running (with "startForeground"). If I install my APK on Blackberry Q10 the service starts without problem, but if the user kill the application the service is stopped.

I see that Skype (that is an android application) has a different behaviour: if the user kill Skype application the background service (i.e. the client-server communication channel) is not stopped.

 

How it is possible? And why my service is killed by OS when the user kill the application?