InactivePowerMode in OS 2.0 does not

I have an app for timer cooking with the ability to disable popups and audio alarms when the application is in the background.

I was using events ACTIVATE and DEACTIVATE and inactivePowerMode the value strangled.

It does more for me in the OS 2.0 with SDK 2.0 UNLESS the user configures the playbook to:

Settings > general > Application behavior > suspended.

In the docs for the file of the bar - descriptor.xml (blackberry - tablet.xml)

https://bdsc.webapps.BlackBerry.com/air/documentation/ww_air_developing/Configuring_your_application...

There is no mention of inactivePowerMode.

I can still package my app with this line without error:

strangled

But he does not have any effect.

So I tried this in my app code:

import qnx.system.QNXSystem;
import qnx.system.QNXSystemPowerMode;
QNXSystem.system.powerMode = QNXSystemPowerMode.THROTTLED;

This code will cause my application to freeze to the home screen on my device.

So how about this:

http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-air/power-management-application-and-...

var win:IowWindow = IowWindow.getAirWindow();
win.addEventListener(IowWindowEvent.WINDOW_STATE_CHANGED, stateChanged );

function stateChanged(event:IowWindowEvent):void {
    switch( win.state ) {
        case IowWindowState.NORMAL:
            trace( "app is full screen" );
            break;
        case IowWindowState.THUMBNAIL:
            trace( "app is minimized" );
            break;
        case IowWindowState.HIDDEN:
            trace( "app is hidden" );
            break;
    }
}

That is my only recourse? Not really dying to rewrite my code whenever a new update comes out of blackberry.

I don't remember the details of what has changed, but I believe that with the changes in 2.0 you should now use the latter approach.

I'm pretty certain, all still in beta versions (of the less, in the last few).

Tags: BlackBerry Developers

Similar Questions

  • iPhone 7 more buttons outside does not

    I've had my iPhone 7 + for about 2 weeks now. Every once in awhile all buttons outside to stop, volume up/down, power, home. The home button will still record and push and give the sensation of taptic and touchID works. The phone itself still works and I can answer texts and which do not use notifications.

    The couple spent time he did, he came upon her in about 4-5 minutes, however it was about half an hour and still nothing. I want to restart my phone, but the switch does not work.

    Has anyone seen this issue or know how to fix?

    Thanks in advance.

    I just experienced the same problem on my iPhone 7, I think it's a bug in iOS, but I am using iOS 10.0.2. Power + button low Volume allowed me to turn it off then turn it back on... Apple please fix this bug!

  • App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    After upgrade 'OS X El Capitan' to "macOS Sierra" window only empty "App store" and page "Safari" made its appearance, no error message shows. store "iTunes" and "Dictionary" does not connect too.

    But Google chrome works well.

    So have you tried the next steps in your original post that Safari does not work after installing macOS Sierra:

    (1) x OS: "Unable to connect" or "unable to connect to the App Store. An internet connection is required"- Apple Support

    2) Advanced the steps to correct the problems with the iTunes Store - Apple Support connection

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • iPhone 7 more telephoto camera does not

    Is anyone having problems with iPhone 7 more telephoto does not activate. I'll go to the camera application and press the 2 x zoom feature, but it appears to be not to activate the camera of 56mm at the front. I cover the lens with my finger, the camera on the right side and the iPhone always displays an image despite me concealing one of the cameras teo. I can't activate the second camera. It seems to only be zooming digitally. I'll do this outside and he'll only digitally zoom when I hide the second lens.

    Im having this same problem. I heard from someone that he could not work until the next software update... but I have no idea and have not found anything in the online help. If someone else gets to know how.

  • Contact ID battery fast draining iPhone 5s does not

    5s fast drainage and Touch ID sinice 10.0.2 iOS iPhone battery update does not

    Restarted the iPhone since the update yet?

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

  • Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Hey there Scotchman2926,

    I understand that you are experiencing some problems with Apple music on Sierra. I have a few suggestions to help you solve this problem. First of all, if you are unable to access the iTunes Store as well as music from Apple, use the information in this article to help resolve this problem:

    If you cannot connect to the iTunes Store - Apple Support

    If this does not resolve the problem, you might try signing out of your Apple ID in iTunes and then connect again.

    Thanks to be come to the communities of Apple Support and let us know how it goes.

    See you soon.

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • New IMac does not, Apple does not change

    https://www.YouTube.com/watch?v=UdUY038FwCI

    I have this problem since I was the imac. I pointed out in 3 days. Apple does not change because I didn't buy that at its retailer. 3 months, still waiting.

    What should I do?

    Everyone pays even, but I get nothing (same lack offers as a freelancer). I think it's fair. What am I, I guess what to do?

    Run the Apple Hardware Test > Apple Hardware Test - Apple help

  • Why Safary does not load the content of pages?

    Why Safary does not load the content of pages? I mean, when I hover over the places where should be the content, he is always showing the "redirect to: [email protected]/" lower left. My Safari is 9.5 and worked fine until Safe Fimder Virus get inside my computer. Mozilla Firefox is a bit slower. If someone could give me an idea on how to deal with it, I would be happy.

    Sorry if my English is not good, I am a Brazilian who is still learning English

    Your English is very good!

    Redirects are usually due to adware or malware.

    Download the run MalwareBytes.

    It of free and takes only a minute or two. Which should remove all adware and malicious software on your Mac.

  • 13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. unplugged

    13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. disconnected the battery and security cordon mag, maintained hold button / stop for 5 seconds, nothing. Another SMC reset and it is the only way Mac powered on that she has no back light for the keyboard and the fan works on high all the time, please can someone HELP, thanks.

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • Do not disturb (on request) does not work

    I have an iPhone 7 more with iOS 10.0.2. I had set up as NEW when I got it. I use the function do not disturb I SLEEP every night to block the incoming notifications apps and emails (including work with the application Outlook email). I leave the phone won't cut not so I can make sure my alarm wakes me up the morning. But it does not work. I still wake up emails and notifications of the app. It worked on my old iPhone with iOS 6, 8, 9 or even 10.

    I see a lot of old messages and questions about DND not work, but they were more specific to older phones and ' iOS.

    Anyone else having this problem?

    Any ideas for help?

    Thank you.

    I'm sure that I understood this.

    I had "only when locked" checked and not 'always' in settings do not disturb.

    I leave my iPhone unlocked all night using the bedside table Central app as my alarm clock.

    There we go.

Maybe you are looking for