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
Highlighted
Developer
Posts: 33
Registered: ‎11-01-2012
My Device: BlackBerry 9780, BlackBerry 10 Dev Alpha
My Carrier: Mobitel - Sri Lanka
Accepted Solution

Porting background running Android app with BB 10

I have developed an Android application which is compatible with Android API 9 and above. There I have background running process just like an Android service. When I try to port that Android application I found that background serveice has some issues. Is BB 10 for Android Runtime development is not supporting for backgroung services yet?

AnujAroshA
Trusted Contributor
Posts: 160
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: Porting background running Android app with BB 10

Hi,

 

There is no support to run services in the background. Applications can run services only while the user runs them, either in fullscreen or in thumbnail mode.

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Retired
Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Porting background running Android app with BB 10


imre_m wrote:

Hi,

 

There is no support to run services in the background. Applications can run services only while the user runs them, either in fullscreen or in thumbnail mode.


They're kind of supported (they're just services as far as android is concerned, and whether they run in the background is a property of the system).  That said, Android Player can and will termininate them in scenarios you might not see them terminated on stock Android (i.e. if you close your app's shell window).

Visitor
Posts: 1
Registered: ‎02-06-2015
My Device: q5, z3 ,os 10/10.2
My Carrier: 0141 - 2652563

Re: Porting background running Android app with BB 10

Hi,

 

I am also facing the similar issue, while porting Android apps in blackberry OS10,OnLocation listeners stop working when App is in background or Screen Locked.

 

When I Tried making native app . the headless permisson i gave is acceptable for OS 10.3 only.Why??(As headless apps started working since OS 10)

 

Can we make app working for BB os 5 or 7 as my code is in JAVA

 

plz if  anyone can help ..

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

Re: Porting background running Android app with BB 10

If you want to continue to receive location updates (or sensor updates) while the screen goes off or the application is put into the background, you need to hold a wakelock.