Avoide auto of interlock of AIR application

I have a game that is based on the accelerometer and the user did not interact with the game, that the tipping of the unit. As a result the unit gets locked automatiocally and I want to avoide that.

Is there a way by which I can avoide lock in AIR application?

Thank you!

Yes, to prevent locking to prevent sleep.  This means that your app will drain more battery life however, so add events to watch the life of the battery.

That's what I have in one of my apps that seems to work well

qnx.system.QNXSystem.system.inactivePowerMode = QNXSystemPowerMode.THROTTLED;

qnx.system.QNXSystem.system.powerMode = QNXSystemPowerMode.NORMAL;

flash.desktop.NativeApplication.nativeApplication.systemIdleMode = "keepAwake";

Tags: BlackBerry Developers

Similar Questions

  • convert adobe flex web app for playbook air application?

    Hey, I am very new to this sort of thing and was using a Visual tool to help me create applications web flex. My question is can I convert these to operate as air apps on the playbook?

    Given that I don't really know action script.

    Also, can you recommend any good books, tutorials, or interactive Web sites that would help me to learn action script? Thank you!

    Some MX controls (OK, a lot) are not supported under the BB SDK.  For example, mx. Alert does not work, you must use the AlertDialog QNX class.  See docs QNX to:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/index.html

    In addition, FlashBuilder is the IDE that is supprted, Flex Builder (3.x) is not supprted.  FlashBuilder 4.x is what you need, but which is not supported under Linux.  You should be able to download the 0.9.1 BB SDK for Linux and the use of the CLI version for a project of will.

    If you are a Flex application, you need to change the root node of a node (Application or WindowedApplication) AIR (if not already done).  If so, act like and more taking orders from MX which are not supported, I keep your business logic and simply change the front-end server with native controls of QNX/BB.

    But first, I would try just get a "Hello World" application to compile and run as an AIR application and then send it on the Simulator to get their feet wet.  then see what it would take to get your application scope.

    Hope that helps.

  • What devices are supported for an Adobe Air application?

    What devices are supported for an Adobe Air application?

    A BlackBerry app created with Adobe Air (Air 2.5) work on a BlackBerry 9900 for example?

    Thank you.

    Only phones PlayBook and BB10

  • FLV support in Adobe AIR application

    Hi all

    I am very new to Adobe Air application. Using Adobe AIR is possible to read .flv files... Any help will be appreciated.

    Yes, they're going to play.

  • Flash Builder 4 doesn't have the 'BlackBerry Tablet AIR Application".

    I'm trying to get the HelloWorld application to work, but I can't find the "BlackBerry Tablet AIR Application" option. It should appear in the debug configuration, but it's not.

    I already have the Simulator works and correctly installed the Playbook SDK (link to version 2.5 SDK and Flash Builder). I have no error in compilation (QNX namespaces are used), I think that the installation has been correctly executed.

    Any ideas?

    You need to update to 4.0.1 FB. See release notes.

  • Connection of an iOS to the debugger in Adobe air application animate

    Hello

    I need to connect my iOS to Adobe AIR application to a debugger, a debugger will work. When I publish my Animate app crashes before it can connect, leaving behind an app still works on my phone. But there is no obvious way to connect to a console at the breast of animate it using "debug" or "start the remote debugging session. With the Simulator, it will connect as long I give IP address appropriate, it will connect. I don't have that option in my app on iOS. My iPhone or iPad will connect. How can I get this done?

    Apparently, the debugger to connect if you do not set the install on the flag of the device. But I found that animate them for Windows doesn't crash as it does on Mac OS. So the question is now moot.

  • Why not throw my Adobe AIR applications?

    Hello

    I am on Mac OS 10.11.1 and I managed to install the latest version of AIR. However, none of my applications that require AIR will launch. When I double-click on the icon of the application to launch, a space appears in the dock as if the application icon is about to appear, but he never does. That's all. I have uninstalled, reinstalled, etc., but have not been able to get this fixed a problem.

    Any suggestions are greatly appreciated.

    Thank you

    I was finally able to solve the problem that was caused by file permissions is stripped. It seems that during the launch of an AIR application, it tried to rename a file that I don't have write access to the. I gave myself the opportunity to write on this file and now it works.

  • Test an AIR application on iOS device, without being an Apple Developer.

    I know that it is now possible to test an application on a device iOS WITHOUT be paid member of the Apple Developer program.  How do I do that?

    The way I've done things before, was to go on my developer account Apple - device UDIDs to type and create the commissioning of profiles and certificates.  I also used TestFlight - but this also requires a paid membership.


    So, what's the new way?

    OK - it worked!

    You need XCode 7.  Create a new iOS XCode project.  (A simple display application - regardless)  But the Bundle ID must be the same as your white AIR app ID (the same that in your configuration xml AIR fie .).

    Plug in your device, and then run the XCode application on your device.

    In XCode, you can consult your commissioning profiles - and display them in the Finder.  You will need one for this application ID.  (I did a copy).

    Then - Keychain Access (in the Utilities folder) and find your certificate listed under 'my certificates). Export it as a .p12 file (and give it a password).

    Now, you can use the .mobileProvision and .p12 file and the password, to build your AIR application to deploy your device!

  • How to remove the screen debugger in Adobe air applications?

    can someone help me remove screen Adobe AIR (unable to connect to the debugger) in my application .apk airScreenshot_2015-05-12-11-07-15.png

    How to remove this screen

    I tried disabling the debugger option in publication of flash CC settings. I always get this screen?

    After unchecking the option of the debugger you republish your air application and then check the date of creation of the application you are testing?

  • How to enable hardware acceleration in an Adobe AIR application

    Hello

    As the author of this post How to enable hardware acceleration in an air exe? , I try to activate hardware acceleration inside my AIR application

    If the user has disabled hardware acceleration in the sound settings flash drive, context3d.driverInfo will say "Hw_disabled = userDisabled".

    The only way to re-enable is to open Internet Explorer or Firefox and right-click on a flash content, then check "enable hardware acceleration".

    I (we) would like to be able to reactivate directly inside the AIR application (via actionscript code) and not tell the user to open a browser and check some random boxes (cause you know that it is not very easy to use...)

    A bug has been opened here Bug #3843535 - disable hardware in IE plugin flash acceleration turns off in AIR EXEs and is marked as fixed but nothing is fixed: there is still no way to enable hardware acceleration in a desktop AIR application

    Thank you

    Hello

    I pushed to get this fixed a bug and felt that we have addressed this issue in v16.  Can you share an example of application so that I can have our team take a look?

    Thank you

    Chris

  • Reduce the AIR Applications to the system tray.

    Hello. Is it possible to minimize our AIR applications to the system tray? Internet Download Manager can have it's window closed but still running and appearing in the system tray, Screenshot_3.png and is it also possible to display balloon messages as do some programs? Any solution even would be really useful.

    Thank you.

    Working with the dock and the system tray | Adobe Developer Connection

  • How to remove menu items by default in a Mac Air application

    Hello world

    I have an Air application built in Flash Builder, which runs on Windows, as well as in Mac.

    My application has its own menu bar. In windows, it's OK.

    But in Mac above the menu bar of the application, there is a menu bar by default Mac app with four elements (application, file, Edition, Windows name), which is completely useless.

    I want to remove the menu bar of the Mac by default app.

    Help, please.

    Thanks in advance,

    Jameel

    You can remove them by using the NativeApplication.nativeApplication.menu property to access the native menu.

    import flash.desktop.NativeApplication;

    If {(NativeApplication.nativeApplication.supportsMenu)

    NativeApplication.nativeApplication.menu.removeAllItems ();

    }

    The ASDocs said this removes all menu items, but I imagine that he will allow the "App name" menu on Mac OS computers item so that the user knows which app is currently active and so it can be closed or hidden.

    NativeMenu - Adobe ActionScript® 3 (AS3) QAnywhere

    NativeApplication - Adobe ActionScript® 3 (AS3) QAnywhere

  • Help! Run any AIR Applications without Adobe AIR.

    Hello, I wanted to ask that is it possible to run AIR applications without having Adobe AIR on your computer. It is really annoying when you have to give your application to use someone, and then the person needs Adobe Air to run it. Any suggestions?

    Where to start...

    AIR is a bit like Java, in the sense that it requires a runtime must be installed. This engine has all the "stuff" that allows the application to run. Similarly, applications like 3DMax or Word require the operating system to be present for them to run. These programs are written using the API calls that are in the target operating system. Similarly, AIR and Java apps are written using the API calls that are present in their execution. To bring a full turn, the AIR is an application written in C, that uses the API for the target operating system. Thus, when you perform certain functions within the AIR, he knows how to execute the necessary functions of the operating system (if necessary). AIR also provides a large number of higher level and management features that make your life as a programmer much easier.

    Look at iOS or Android, we have the occurrence of the thing. Some developers write applications using Objective-C (iOS) or Java (Android) which are using the APIs specific to these operating systems. It's the same as writing your application in C like 3DMax.

  • Visit a website in Adobe Air Application behind the scenes...

    Hi all

    I need to find a way in Actionscript 3 for an Adobe Air application to visit a url of a website (e.g. example.com) in the background without Adobe Air by opening a web browser.

    Once the website is loaded in the background, I would get all the URL link that can see the Adobe Air application. For example, maybe when you visit "example.com" it redirects to "google.com", so I want my application to send me any URL it sees after it loads the page.

    Is this possible, and is there an example of code anywhere?

    Thank you guys!

    I think that you can get the information you want using URLLoader with a listener for HTTP_RESPONSE_STATUS and check the responseHeaders and responseURL properties:

    HTTPStatusEvent - Adobe ActionScript® 3 (AS3) QAnywhere

    -Aaron

    http://abeall.com

  • Is there no way to run an AIR application audio to audio output devices different from?

    I need to do a couple of our AIR applications select some audio devices to send their audio output, and last year, someone mentioned possibly using native extensions to do this.  I had to start working on other things for a while, but I'll be back to that (for the moment), and I basically learned how to create native extensions.

    But so far, they do not seem to provide me with any privileged access to what's happening under the hood of an AIR application.  When you stream live in via RTMP or RTMFP, details of the audio you are hidden.  It doesn't seem to be any place where you can actually access the audio bytes are sent on the network.  You can specify a certain object SoundTransform for the NetStream to use, but this class is final and one vanilla Flash build, so even though she may have a way to access the audio bytes, they are not accessible to all.

    It really seems that, when a NetStream starts streaming live audio, there is no way under the Sun for access to the bytes of audio and direct them to a certain audio output device, with or without extensions.  Is it so?  It would be unfortunate that Adobe does not allow it, even through the native extensions.  Thank you.

    Couple quick thoughts...

    The limits are important. There is a lot of work to maintain a clear separation between a decision to users and developers. For example, you cannot change an audio by default to users out because that clearly violates a decision to users. That said, this is a mess of people debating the issue and in fact finally a COM API without papers you can find allows you to actually do in Vista/Win7 (but not 8), but do not expect that it is a "right thing to do":

    lie lly-setting-the-default-playback-device-and-recording-device?forum=windowspro-audiodevelop http://social.Microsoft.com/forums/en-US/9ebd7ad6-A460-4A28-9de9-2af63fd4a13e/programatica

    You can get a drink before reading this.

    Incidentally, RTMP is secure, which explains why you can't access the bytes. The entire purpose of this is to ensure that their media cannot easily be copied or stolen media developers. Adobe don't document their method of securing the flow, but they do not publish the RTMP protocol specification. It is quite possible for you to create your own server method and encryption protocol RTMP while providing an RTMP stream to the custom client that you yourself the code which peut read flow. Here are the specs:

    http://www.Adobe.com/devnet/RTMP.html

    So I would say that it would be unfortunate if Adobe did give, you access the bytes. You might as well hand users an mp3 of a song because they steal left and right media.

    That does mean that you can not use a multitude of ways to get data via the default output device. Many applications (fraps/etc) captures audio streams video and mixed. But Adobe won't give you the keys of the Kingdom and allow you to decrypt protected multimedia Protocol.

Maybe you are looking for

  • Still worth the upgrade?

    Hi all I have the Middle 2009 13 "model MBP already upgraded to 4 GB of ram + 128 GB SSD. I just update the operating system to El Capitan yesterday. Given my MBP is going very slowly in opening simply different tabs firefox / chrome / safari, I thin

  • IPhone 5 s desligando mesmo com carga na bateria

    IPhone 5s esta desligando apos some hours consumo e com approximately 50% of bateria. E ao roomma-lo para carregar, ele mostra without visor uma zerada carga como porcentagem is tivesse descarregado naturalmente. O that devo fazer?

  • HP 1050 J410: HP 1050 J410 driver download for WIN 8.1

    Download the driver for WIN 8.1. Print preview looks perfect, but only 1/3 of the priints on several pages? Is there a setting for this problem?

  • Samsung 840 Pro Series 128 GB in Studio 1737?

    Probably a stupid question, but I need to know before making a purchase. The Samsung 840 Pro will work in a Studio 1737? What to look for when buying an SSD to ensure it will work with my computer. Sorry if this is Basic. learning of MI Alex

  • How to upgrade to windows 7 for the latest sp1?

    Greetings, I have Windows 7 SP1 with IE9, I need to upgrade to the latest SP1 with IE10. where to get the update that will make this upgrade? Thank you.