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

Native Development

Reply
Developer
Posts: 123
Registered: ‎07-08-2011
My Device: Torch 9800, Bold 9700
My Carrier: Bell, Rogers

Detecting that the Hub has been opened

Does anyone know of a way of detecting when the hub has been opened?

 

I know this is possible somehow as I've seen apps that can do this. I don't know whether there is an api for this or possible a signal of some sort that can be used to detect this.

 

Purhaps if I can determine the foreground application I would be able to determine if the hub has been opened.

 

 

Berobo Inc.
Police Scanner Radio / Alarm Clock lets you listen to Police scanners in your area!
http://www.berobo.com
_________________________________________________
Please click the Like button to thank the user that has helped you and
please mark post as solved when you have found the solution to your problem.
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Detecting that the Hub has been opened

This is not supported today.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 123
Registered: ‎07-08-2011
My Device: Torch 9800, Bold 9700
My Carrier: Bell, Rogers

Re: Detecting that the Hub has been opened

I might be going about what I'd like to do using the wrong approach.

 

Let me clearify what I'd like to accomplish. I am interested in developing an app to set the Led flashing for a specfic event that may occur, such as an incoming email from work. I want to call the Led cancel() to  turn off the flashing if the user opens the hub.

 

This can be done as there are numerous apps on the app world for bb10 that are already doing this. The Led flashing is turned off once the hub is opened. As I don't see anything in the Led class other than flash count and cancel() for controlling when the Led is turned off then I assume some signal is being captured when the hub is opened to trigger turning off the Led.

 

 

 

 

 

 

Berobo Inc.
Police Scanner Radio / Alarm Clock lets you listen to Police scanners in your area!
http://www.berobo.com
_________________________________________________
Please click the Like button to thank the user that has helped you and
please mark post as solved when you have found the solution to your problem.
Developer
Posts: 196
Registered: ‎12-14-2009
My Device: Not Specified

Re: Detecting that the Hub has been opened

Anyone figure out how to detect  the hub opening?

Developer
Posts: 196
Registered: ‎12-14-2009
My Device: Not Specified

Re: Detecting that the Hub has been opened

So, as there are applications that detect when the Hub is entered and exited. Does anyone know what signals those are for us programers?

Developer
Posts: 292
Registered: ‎07-25-2008
My Device: Passport

Re: Detecting that the Hub has been opened

The apps in question are not detecting the hub being opened and reacting to it.

 

The hub itself is telling the notification service to cancel the flashing LED when it is opened.

Developer
Posts: 196
Registered: ‎12-14-2009
My Device: Not Specified

Re: Detecting that the Hub has been opened

It looks like there are apps, like BeBuzz that detects both when a user enters the Hub and also when they exit the Hub so there is a way to differentiate. There's more to it than led dismissal.