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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 15
Registered: ‎03-10-2010
My Device: Q10,Z10
My Carrier: Telus

How to tell if a service got killed by Android Runtime (process?) or BB10 OS?

Greeting,

 

I got a class:

public class CustomService extends RoboService (which extends android.app.Service)

 

 

Declared at AndroidManifest.xml:

        <serviceandroid:name="CustomService">

            <intent-filter>

                <actionandroid:name="ACTION_SERVICE_START"/>

            </intent-filter>

        </service>

 

Started with:

startService(new Intent("ACTION_SERVICE_START"));

 

somehow this service got killed when it is left idle for few hours.

 

Just wondering is there way I can tell if it got killed by the Android Runtime (process?)? or at the BB10 OS level?

 

Any comments are appreciated

Thanks.

Retired
Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: How to tell if a service got killed by Android Runtime (process?) or BB10 OS?

Anything Android is killed by the Android Runtime 99.9% of the time.

Contributor
Posts: 15
Registered: ‎03-10-2010
My Device: Q10,Z10
My Carrier: Telus

Re: How to tell if a service got killed by Android Runtime (process?) or BB10 OS?

in theory, if it wasn't killed in a native Android environment (not BB10 Android Runtime), it shouldn't be killed in BB10 Android Runtime? is it a correct assumption?

is the BB10 Android Runtime implemented by Blackberry? or was it supplied by Google?
Retired
Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: How to tell if a service got killed by Android Runtime (process?) or BB10 OS?

That is an incorrect assumption Smiley Happy

 

The runtime is based on the Android Open Source Project, with modifications made by BlackBerry so that it integrates with QNX / BB10.

Contributor
Posts: 15
Registered: ‎03-10-2010
My Device: Q10,Z10
My Carrier: Telus

Re: How to tell if a service got killed by Android Runtime (process?) or BB10 OS?

Thanks for the clarification.

I wondered is the source of QNX/BB10 modified version available to the public?