Partial Wakelock in Adobe Air for Android

I develop Adobe Air (for Android) application that is designed to be constantly turned on. App has operations based event. However, when the phone goes to sleep mode app is able to perform only one or a few events in a second which is not good enough. AIR SystemIdleMode.KEEP_AWAKE - mode is not an alternative because it is too consuming battery.

I am looking for a solution when the phone is allowed to enter the mode 'sleep' (screen is off), but still the CPU performance are not radically fallen. Not sure Android part wakelock-mode does the job and is available through DONKEY?

What type of event you are missing to be able to manipulate during sleep? According to the documentation from Adobe AIR decreases the rate of 4 frames per second when it is moved to the background or becomes inactive. Im guessing that the screen, disabling account in this respect and that is probably a reason as to why you have found only a few events a second, but I can't say for sure without knowing what type of event you use. In regards Android PowerManager WAKE_LOCK function, Google documentation says that you should not use this API unless you absolutely, and if you have to use it, you use it and do with it as soon as possible as long as this hurts API independence (they have same "BOLD" the part about the battery life). What you try to do that requires that the app is always on? More details can help myself or others provide other options to accomplish what you are trying to do. If you must use the PowerManager, you should be able to create a DONKEY to turn on and off the WAKE_LOCK mode, but could only help the side Android/Java things and you might need to move your event handling during the side of things because Java application of AIR will be always abandoned at 4 frames per second when the screen turns off.

Adobe AIR * Mobile application design considerations

PowerManager | Android developers

Tags: Adobe AIR

Similar Questions

  • Impossible to compile Adobe AIR for Android TV

    Hello

    We try to compile the AIR with the flags are:

    < android >

    < manifestAdditions > <! [CDATA]

    < manifest android: installLocation = "auto" >

    ...

    < / manifesto >

    []] > < / manifestAdditions >

    < supportsAndroidTV > true < / supportsAndroidTV >

    < banner > "path of the image of the banner (320 x 180 px, .png file)" < / banner >

    < / android >

    and get:

    C:\MediaSignageDepot\Solution\5.0\Products\SignagePlayer\Android\SignagePlayerAn

    droidApp - app.xml (206): error 103: application.android.supportsAndroidTV is a UN

    element/attribute EXPECTED

    Anyone had success compile those flags with Adobe AIR for Android TV last?

    We're uisng the flag of swf-version 31 and namespace 20.0 to try to access this feature.

    We use the AIR 20

    Kind regards

    -Sean http://DigitalSignage.com

    ____________________________________________

    MediaSignage.com, digital signage FREE for everyone!

    5776-D Lindero Cyn Rd #182

    Westlake Village, CA 91362

    Phone: 1.877.DIG. SIGN (1-877-344-7446)

    Fax: 1.818.337.0442

    Live support: http://chat.digitalsignage.com

    I see that beta support has been added for Android TV in one of the beta versions of AIR 20. Read this discussion:

    AIR 20.0.0.230 iOS install questions and support Android TV has stopped working

    It seems that you would have used equip 185 and not the final version. Or you can try an AIR 21, or 22 AIR beta version.

  • Many problems with the runtime Adobe AIR for Android

    I created an application on Adobe AIR for Android platform, which requires for AIR. The app is very popular in the Android Market, but many users complain of problems with the installation of the Adobe Air runtime.

    For example, these users phones: LG LGE-P698, LG Pecan, HTC Wildfire. But judging by the fact that users have access to the installation of the Air, their phones are compatible with it.

    Tell me how to solve the problem?

    In addition, I have a few questions:

    1. Decides that the problem of demand for export with built-in AIR runtime?

    2. I have create my applications using ADT. In this case how do I seal AIR runtime?

    3. is it possible to invite the user to download and install older versions of AIR? Where can I find her?

    I hope I can help, because the problem is global.

    Hi Astraport,

    I think you should integrate the air in your application runtime,

    Some time ago I wrote a step by step guide, take a look at this post:

    http://forums.Adobe.com/message/3961579#3961579

    I hope it helps

  • Adobe AIR for Android update fails to UPDATE

    Why the update for Adobe AIR is a failure to update, and also how is it that no one is able to install?

    Nathan I would recommend posting a request on the Adobe AIR http://forums.adobe.com/community/airforum.

  • Adobe AIR for Android as3 codes work only not for this one project

    I am using the accelerometer in my flash game, which works for all the other projects I'm trying, but for some reason any on a project if I try to use it I get, using the same code that I've used before, such as this one.

    1046: type was not found or is not a constant of compilation: accelerometer.

    1180: call to a method may be undefined, accelerometer.

    It is a quite old file, not if old, then, are there files I have to add to make it work or I need to change the settings? It's very frustrating, I don't know what the problem might be. Can someone help me?

    The error message indicates it does not find the class.  Make sure you import it:

    import flash.sensors.Accelerometer;

  • Air for Android encoding SPARK instead of H264

    I don't have any flash application that simply video stream from a camera to a server. The stream must be encoded in H264 and when I publish a SWF file and use a webcam, I can see the connection to the server and see that it is H264 encoding.

    However, if I publish on a device using AIR for Android Android, when I publish to the server with camera phones, the stream is available in code in SPARK.

    Is there a reason for this? Is it not possible to encode H264 we AIR for Android? Or maybe I'm doing something wrong?

    Any help would be appreciated.

    After some searching on the forums I found the following answer: http://forums.adobe.com/message/4319145 H264 encoding is only supported on the desktop.

  • ListBox with air for Android

    I have to use the listbox control to air for android. But when I type in import fl.controls.List, I get the error: could not find definition fl.controls:List.

    even when I'm using fl.controls. * it gives the same error.

    I discovered that its becouse fl.controls.List is made for the following:

    Language version:ActionScript 3.0
    Product version:Flash CS3
    Versions of the Runtime:Flash Player 9.0.28.0, AIR 1.0

    (I got this from http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/List.html)

    I use flash cs5.5 in air for android. does any1 know how I can use a listbox control to air for android?

    friend

    René

    Drag an instance of the listbox control to the library of components to the stage.  That he will place in your library.  Remove the instance you placed on the stage.

  • APP created with air for Android but does not work on the emulator to test - help!

    When I create an application using Flash CS5.5> > > AIR FOR ANDROID.
    After creating a test page I'm going to publish parameters and Send le App on Emulator RELEASE of ... Le APP is load correctly but as soon as you start the emulator, give this error " application XXnameappXX (process air .)" XXnameappXX) has stopped unexpectedly. Please try again"Please Help!

    "Okay I find this before ' Adobe Flash CS5/AIK2.5/runtimes/air/android/emulator/Runtime.apk" and install it on the android emulator! Now work all that I hope so! Thanks for your response!

  • Adobe AIR for mobile expectations and misconceptions?

    Hello, I'm a bit confused by the contents published by Adobe, who claims that AIR for Android or iOS publication creates a fully native application.

    For example, in this Adobe Developer Connection article (http://www.adobe.com/devnet/logged_in/abansod_iphone.html) written in May 2011, the following applications are made:

    "Since we are able to compile ActionScript to the advance ARM, the application gets all the benefits that would provide the JIT and the license compliance need not be lasting in the final application."

    "When you build your app for iOS, there is no interpreted code and no runtime in your final binary." Your application is really an application native iOS. »

    After reading a lot of information like this from Adobe and other sources, I advanced and bought an Android phone. After graduating in reality the. Published in Flash Pro CS 5.5 on the phone and installed apks, he of course gave me the message that I needed to install Adobe AIR to run the program.

    How this can be "truly a native app? The same thing happens in iOS, obviously. Flash works in a web browser a "truly native app" in this case? The extra step of download users the Adobe AIR package makes it all seem so cooked half compared to actual native applications. I guess there is no way AIR package with your app? Not that this is a great alternative, but I don't see what else better this situation.

    It seems that you may be a little confused iOS with Android. Article that you referenced spoke only of iOS, Android not. So, Yes, they were right.

    Now, there is a new option in AIR 3 that allows you to pack your WITH the AIR Runtime for Android applications. This is called "Captive Runtime" and allows you to create applications that do not need to reach out to grab AIR everything on the market because it is already packed.

    Here is more information on the Runtime in captivity:

    http://www.tricedesigns.com/2011/08/10/air-3-0-captive-runtime/

    Here's how you can set up Flash Pro with AIR3:

    http://www.swfgeek.NET/2011/09/26/targeting-Flash-Player-11-RC1-air-3-RC1-in-Flash-profess international-cs5-5 /.

    Note that if you use Flash Pro to create an application with AIR 3 you actually will consolidate the app with the command line. The tool is not yet available in the Flash authoring environment.

    Here's how you can do this:

    http://www.YouTube.com/user/iBrent#p/u/6/MRcoJ6ClLqo

    It is similar to this, but with slightly different switches. There is more information in the command line help.

  • Air for Android model missing in Flash Professional CS5

    I'm starting to develop android in flash applications.  Most of the tutorials begin with my selection of Air for Android model in Flash CS5 Pro.  This option is not available for me.  When I try to install the extension I get this: http://labs.adobe.com/technologies/flashpro_extensionforair/

    I'm under the last update for CS5.

    Any suggestions?

    Thank you!

    John

    I was in a similar situation. I think that you must update now to 5.5 to get air for android extension. I have it on my system and with 5.5 works perfectly, I couldn't upgrade without having to pay for the extension of my cs5

  • AIR for Android - best video Video?

    Hi all

    I am developing an application of video player customized by using AIR for Android Flash Pro CS5 extension.

    I tried an FLV and MP4 video with the snippet more stripped back, but the video still seemed a bit jerky on my phone. (Samsung Galaxy S)

    Code

    var video: Video;
    var connect_nc:NetConnection = new NetConnection();
    connect_nc. Connect (null);
    var stream_ns:NetStream = new NetStream (connect_nc);
    stream_ns.client = this;

    video = new Video();

    addChild (video);

    video.attachNetStream (stream_ns);

    stream_ns. Play ("Video.flv");

    If anyone knows what are the ideal no jerky video coding specifications? Is this something to do with H.264, or perhaps CPU vs GPU? (I tried also, without any visible difference.) Even with the application running at images appropriate per second (in this case, 24 fps), enjoy smooth video.

    Any comments would be much appreciated!

    Hi [email protected]

    These should help you:

    http://www.Adobe.com/devnet/devices/articles/encoding-guidelines-Android.html

    http://www.Adobe.com/devnet/devices/articles/video-player-optimization.html

    best regards Mike

  • Can't do StageVideo play in the AIR for Android

    I have no video, but audio only, to display when you include .mp4 encoded H.264 video in an AIR project Android test. LOOK for video performance iOS is ok with the same encoding settings.

    I know that there has been a lot of discussion about this in the past, but he has all the answers? Y at - there any formulation of video that will play by air for Android?

    I tested on a Samsung Galaxy 4 on Android 5.0.1.

    In the past, on older versions of Android, I had questionable but occasional reading video integrated in AIR for Android app, but when I run the app now the video repeatedly fails.

    It must be a problem of AIR because when I simply download the same video, that I built in my AIR on Galaxy 4 directly application it plays very well.

    My work for a client depends on, it works in Android. Any ideas?

    Before you begin, what AIR version do you use?  We've recently redesigned video on Android, and I want to make sure that you are up-to-date.  The latest version is AIR 22 (23 AIR will be released next month).

  • Adobe Air on android 4.1.0 and more

    No android 4.1.0 and above tablets support adobe air? Are there any known issues or bugs?

    There should not be problems with Adobe AIR on Android 4.1

    If you have any problems, please post on the forum of the AIR.

  • Problems with BBC iPlayer Desktop and Adobe Air for Mac

    I would be grateful to anyone who can help me with a problem I have on my laptop computer running Mac OS X Lion 10.7.3.I has problems running BBC iPlayer Desktop, and I suspect that it is caused by Adobe Air.

    Recently, I was invited to update Adobe Air to the latest version (from February 2012) and after I updated the program, it started to cause problems when I used BBC iPlayer desktop.

    The first problem is that I was unable to play any programs downloaded mode full screen-, I have noticed that the sound is played, not the video.

    Secondly, a few weeks after the beginning of this problem, all my TV programs have mysteriously disappeared.

    My last problem is that whenever I run the BBC iPlayer application it is impossible to download new programs - when I am connected to the internet, the application always says he's 'offline '.

    I tried to solve the problem by rebooting my computer, uninstall and reinstall the BBC iPlayer, deactivation and reactivation of my firewall, connection to the internet in different places, but this has not solved the problem.

    I tried to uninstall Adobe Air, but the installation package says it is "corrupted". So I tried to download and reinstall the application from the adobe website, but already, the computer recognizes that the application is installed. either - I can't uninstall or reinstall Adobe Air.

    I contacted the support of BBC iPlayer and they are unable to help - direct me to your Web site. I have read several other topics of discussion published on this site but not found the solution that I'm looking.

    Please some can help me to solve this problem, helping me to uninstall and reinstall Adobe Air for Mac?

    I'm not very technical, mind - for example - I don't know what log files are or how to find them - so please explain as simply as possible.

    Thank you in advance for your help!

    Ryan

    Hi Ryan,

    Could you try to delete the folder preferences of BBC iPlayer then restarting iPlayer to see if that helps?  You should be able to find this in ~/Library/preferences.  Find the folder from BBCiPlayerDesktop and a long series of characters and move or rename this folder.

    Thank you
    Chris

  • Air for Android: hardware accelerator

    Hi, I'm new to this forum and I hope that this is the right place where to put my question.

    I want to open a PDF document in my Air for Android application.

    I used StageWebView but I can't open my document because there is a problem with the accelerator.

    I use Air SDK 2.6.

    Can someone explain to me how I can activate hardware accelerator, or if there is another way to get what I need?

    The same code tested on IPad work perfectly.

    Thank you very much.

    Alberto

    Hello

    I guess you are on windows:

    Did you know that there is a bug open in Android Installer for Windows? See:

    http://StackOverflow.com/questions/4382178/Android-SDK-installation-doesn ' t-find-jdk

    (when you get popup/error with this message use 'Back' in the wizard, then simply 'Next' once again).

    Kind regards

    Peter

Maybe you are looking for