03-28-2013 02:53 AM
I am working on some battery stuff. Displaying an alert message when battery is low.When the application is in background it does display dialog but I need to force the application to foreground.How can I do that? Any reference to github samples?
03-28-2013 05:23 AM
There's this but it's linked to NFC so not sure it will work,
NFC obviously needs to interrupt current flow, however I'm not sure I would agree (as a potenial user/purchaser) with this design choice for a battery app. The notification system is there so that the user can choose whether to bring your app to the front based on what he/she reads in a nice non-invasive way.
Perhaps if you make it the default that your app does *not* interrupt what I'm currently doing and put a user setting in that enables that behaviour for those that would wish to be it would be a friendlier design.
03-28-2013 08:48 AM
At this time there's no simple way to bring your application to the foreground.
Here's a thread where it was discussed, http://supportforums.blackberry.com/t5/Cascades-De
03-28-2013 08:49 AM
Without a SE triggering a transaction due to some external NFC exchange - that function will return NFC_RESULT_SE_REQUEST_REJECTED
03-28-2013 09:37 AM