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: 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?