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
Contributor
Posts: 45
Registered: ‎12-27-2011
My Device: Developer
Accepted Solution

Making SYSTEM_ALERT_WINDOW work on the bb10

I have an android app that runs in the background and makes use of SYSTEM_ALERT_WINDOW permissions to create a small info box and show it on top (literally on top of any app running)

 

when i run the verifier i get an impact level 4 on this one
can someone point me in the right direction?

 

cheers!

Retired
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

Unfortunately applications that run in the background with no launchable activity or make use of SYSTEM_ALERT_WINDOW are not currently supported.

 

For the full list of unsupported APIs please see: http://developer.blackberry.com/android/apisupport/

 

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Contributor
Posts: 45
Registered: ‎12-27-2011
My Device: Developer

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

sorry i was not being completely clear
it is a launchable app with gui and everything but it should autostart and run in the background responding to certain events with an info screen/box
sort of like pushglobalscreen on bb java

Contributor
Posts: 45
Registered: ‎12-27-2011
My Device: Developer

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

[ Edited ]

if its not supported at all is there another way to do the same thing?

would that functionality be possible if making the app in one of the different languages? like native or html5?

Retired
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

Autostarting of applications is not currently supported. So I'm not sure if there would be a work around for your application scenario. Especially with the usage of SYSTM_ALERT_WINDOW.

 

You might be able to post notifications instead of using an alert window (These notifications would be shown in the users BlackBerry Hub area) but the application would have to launched and running by the user.

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Contributor
Posts: 45
Registered: ‎12-27-2011
My Device: Developer

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

sorry if i am flogging a dead horse here but are they (autostart and "pushglobalscreen") unavailable just for android or for all languages?

Retired
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

[ Edited ]

I don't believe these are supported for the other platforms on BB10.

 

 

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Contributor
Posts: 45
Registered: ‎12-27-2011
My Device: Developer

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

ok thanks :smileyhappy:
Retired
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Making SYSTEM_ALERT_WINDOW work on the bb10

Spoke to soon. Dialogs and toasts should be able to be seen while a native application is running. Background mode is still not supported however. 

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators