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™ Runtime Development

Reply
Trusted Contributor
Posts: 103
Registered: ‎11-07-2010
My Device: Not Specified
Accepted Solution

AlarmManager and background service

Hello,

 

this is my first post in this section, I hope that I could get your help,

 

the problem is I want to make an application that post a reminder for the user periodically every time slot,

I made this app using service and AlarmManager and it is working very well on android devices,

 

when I made porting for it on the BB Z10, the alarm only works when the application is opened and when closing the application it doesn't work, even the Toast doesn't appear from the Alarm onReceice,

 

also the notifications doesn't work if the application is closed on BB Z10,

 

can you help in this,

 

thanks in advance,

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

Re: AlarmManager and background service

Hi,

 

On BB10 background services are not yet available. :No:
"Background services capabilities are currently not available to third party developers. They will be available in a future release of BlackBerry 10." - more details: http://devblog.blackberry.com/2013/02/java-to-cascades-part-2/

 

The article is about Cascades, but the Android Runtime is certainly no exception.

 

BR,

Imre

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Trusted Contributor
Posts: 103
Registered: ‎11-07-2010
My Device: Not Specified

Re: AlarmManager and background service

I got it,

make the alarm of type AlarmManager.RTC_WAKEUP not AlarmManager.RTC,

it seems that the BB 10 handles the RTC_WAKEUP with a different manar than android,

New Contributor
Posts: 6
Registered: ‎10-11-2012
My Device: BB10
My Carrier: BB10

Re: AlarmManager and background service

Hi,

 

Can you tell me the class name for AlarmManager on Cascades.

I typed 'Alarm' on documentation searchbox and couldn't find any.

 

Thanks a lot.

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

Re: AlarmManager and background service


omar123456789 wrote:

I got it,

make the alarm of type AlarmManager.RTC_WAKEUP not AlarmManager.RTC,

it seems that the BB 10 handles the RTC_WAKEUP with a different manar than android,


How so?