Air on Android: ANR keyDispatchingTimedOut

Hello

First of all, I would like to say GREAT JOB ADOBE, AIR is the only TRUE cross-platform platform available today that allow you to target multiple devices (now I know there are too many problems, but I could not find any other appropriate technolgoy that allow me to both develop games and apps with it)

Secondly, my recent app works AWESOME on iOS and Blackberry playbook, however when it comes to Android, (I use AIR 3.7) my app stuck after a while, and I get same ANR erroor with 99% same newspaper.

Kindly, help and let me know what is happening out there as I am unable to make sense of the newspaper, my app is an application of paint with mousedown and play audio effects, (the mouse to the bottom/over) etc.

Here is the log

ANR keyDispatchingTimedOut

DALVIK THREADS:

(mutex: tll = STL tscl ghl 0 = 0 = 0 = 0)

"main" prio = 5 tid = 1 NATIVE

| Group = "main" sCount = 1 reductions = 0 obj = 0x40f3f4c0 self = 0xc957b0

| sysTid = 9982 nice = sched cgrp = default handle = 1074337148 0 = 0/0

| schedstat (68501953685 17042441637 91859) = utm = 5910 stm = 940 core = 1

at com.adobe.air.customHandler.callTimeoutFunction (Native Method)

at com.adobe.air.customHandler.handleMessage(customHandler.java:22)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:154)

at android.app.ActivityThread.main(ActivityThread.java:4624)

at java.lang.reflect.Method.invokeNative (Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

to com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run (ZygoteInit.java:809)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)

at dalvik.system.NativeStart.main (Native Method)


"AudioTrackThread" prio = 10 tid = 18 ABORIGINAL

| Group = "main" sCount = 1 reductions = 0 obj = 0x41945a68 self = 0x13eb108

| sysTid = nice-16 14004 = sched = 0/0 cgrp = default handle = 35402400

| schedstat = (464872302-214067321-5444) utm = 14 stm = kernel 32 = 1

at dalvik.system.NativeStart.run (Native Method)


"Wire-14611" prio = 5 tid = 17 ABORIGINAL

| Group = "main" sCount = 1 reductions = 0 obj = 0x41945d28 self = 0x147fd18

| sysTid = nice-16 14003 = sched = 0/0 cgrp = default handle = 30658624

| schedstat = (219919464-48144153-981) utm = 16 stm = 5 strands = 0

at dalvik.system.NativeStart.run (Native Method)


"Wire-14586" prio = 5 tid = 16 NATIVE

| Group = "main" sCount = 1 reductions = 0 obj = 0x41a5dd70 self = 0xf693d0

| sysTid = 10010 nice = sched cgrp = default handle = 16485592 0 = 0/0

| schedstat = (2144241714-2580103782-25916) utm = 113 stm = core 101 = 1

at dalvik.system.NativeStart.run (Native Method)


"Wire-14585" prio = 5 tid = 15 ABORIGINAL

| Group = "main" sCount = 1 reductions = 0 obj = 0 x 41919020 self = 0xf89968

| sysTid = 10009 nice = sched cgrp = default handle = 16710104 0 = 0/0

| schedstat (31459240 130834457 626) = utm = 0 stm = core 3 = 0

at dalvik.system.NativeStart.run (Native Method)


"Wire-14583" prio = 5 tid = 14 ABORIGINAL

| Group = "main" sCount = 1 reductions = 0 obj = 0x418a8cb0 self = 0xfe6470

| sysTid = nice 10004 = sched cgrp = default handle = 16279096 0 = 0/0

| schedstat = (376383-61765153-9) stm utm = 0 = 0 = 0 core

at dalvik.system.NativeStart.run (Native Method)


"Wire-14582" prio = 5 tid = 13 ABORIGINAL

| Group = "main" sCount = 1 reductions = 0 obj = 0x418e8f78 self = 0xfdf7b0

| sysTid = 10003 nice = sched cgrp = default handle = 16074528 0 = 0/0

| schedstat = (218174309-100420612-262) utm = 17 stm = kernel 4 = 0

at dalvik.system.NativeStart.run (Native Method)


"Binder Thread #3" prio = 5 tid = 12 ABORIGINAL

| Group = "main" sCount = 1 reductions = 0 obj = 0x418ab860 self = 0xfe2898

| sysTid = 10002 nice = sched cgrp = default handle = 16054272 0 = 0/0

| schedstat = (25091458-205252848-213) utm = 2 stm = 0 = 1 core

at dalvik.system.NativeStart.run (Native Method)


"java.lang.ProcessManager" daemon prio = 5 tid = PATIENTER 11

| Group = "main" sCount = 1 reductions = 0 obj = 0x418ac9e0 self = 0xe21018

| sysTid = 10000 nice = sched cgrp = default handle = 16012192 0 = 0/0

| schedstat = (2048767-61409460-17) stm utm = 0 = 0 = 0 core

at java.lang.Object.wait (Native Method)

-waiting on < 0x4187c210 > (a java.util.HashMap)

at java.lang.Object.wait(Object.java:364)

at java.lang.ProcessManager.waitForMoreChildren(ProcessManager.java:140)

at java.lang.ProcessManager.watchChildren(ProcessManager.java:105)

to java.lang.ProcessManager.access$ 000 (ProcessManager.java:40)

to java.lang.ProcessManager$ 1.run(ProcessManager.java:58)


"android.hardware.SensorManager$ SensorThread" prio = 5 tid = 10 NATIVE

| Group = "main" sCount = 1 reductions = 0 obj = 0x418eb218 self = 0xfdc2d8

| sysTid = 9999 nice-8 = sched = 0/0 cgrp = default handle = 15204776

| schedstat = (399149510-189489559-2833) utm = 39 stm = 0 = 1 core

at android.hardware.SensorManager.sensors_data_poll (Native Method)

to android.hardware.SensorManager$ SensorThread$ SensorThreadRunnable.run (SensorManager.java:4 98)

at java.lang.Thread.run(Thread.java:856)


"Binder Thread #2" prio = 5 tid = 9 NATIVE

| Group = "main" sCount = 1 reductions = 0 obj = 0x4184e340 self = 0xf0a960

| sysTid = 9994 nice = sched cgrp = default handle = 16530472 0 = 0/0

| schedstat (36518472-212101527-207) = MTU = 1 stm = core 2 = 0

at dalvik.system.NativeStart.run (Native Method)


"Binder Thread #1" prio = 5 tid = 8 NATIVE

| Group = "main" sCount = 1 reductions = 0 obj = 0x4184be78 self = 0xff09a0

| sysTid = 9993 nice = sched cgrp = default handle = 16536408 0 = 0/0

| schedstat (30399157 206606684 214) = MTU = 1 stm = core 2 = 1

at dalvik.system.NativeStart.run (Native Method)


"FinalizerWatchdogDaemon" daemon prio = 5 tid = 7 TIMED_WAIT

| Group = "main" sCount = 1 reductions = 0 obj = 0x41848b98 self = 0xfe48c8

| sysTid = 9992 nice = sched cgrp = default handle = 16032952 0 = 0/0

| schedstat (5256924 77209690 72) = stm utm = 0 = 0 = 0 core

at java.lang.VMThread.sleep (Native Method)

at java.lang.Thread.sleep(Thread.java:1031)

at java.lang.Thread.sleep(Thread.java:1013)

to java.lang.Daemons$ FinalizerWatchdogDaemon.run (Daemons.java:213)

at java.lang.Thread.run(Thread.java:856)


"FinalizerDaemon" daemon prio = 5 tid = PATIENTER 6

| Group = "main" sCount = 1 reductions = 0 obj = 0x41848a40 self = 0xfeed00

| sysTid = 9991 nice = sched cgrp = default handle = 15931824 0 = 0/0

| schedstat = (35608386 91104086, 392) utm = 2 stm = 1 core = 0

at java.lang.Object.wait (Native Method)

-waiting on < 0x40f355d0 > (a java.lang.ref.ReferenceQueue)

at java.lang.Object.wait(Object.java:401)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)

to java.lang.Daemons$ FinalizerDaemon.run (Daemons.java:168)

at java.lang.Thread.run(Thread.java:856)


"ReferenceQueueDaemon" daemon prio = 5 tid = PATIENTER 5

| Group = "main" sCount = 1 reductions = 0 obj = 0x418488d8 self = 0xfaa4a0

| sysTid = 9990 nice = sched cgrp = default handle = 15904704 0 = 0/0

| schedstat = (28687601-75100308-912) utm = 2 stm = 0 = 0 core

at java.lang.Object.wait (Native Method)

-waiting on < 0x40f354f8 >

at java.lang.Object.wait(Object.java:364)

to java.lang.Daemons$ ReferenceQueueDaemon.run (Daemons.java:128)

at java.lang.Thread.run(Thread.java:856)


"Compiler" daemon prio = 5 tid = 4 VMWAIT

| Group = 'system' sCount = 1 reductions = 0 obj = 0x418487e8 self = 0xfe5760

| sysTid = 9988 nice = sched cgrp = default handle = 15977024 0 = 0/0

| schedstat = (340262096-612489696-1656) utm = 24 stm = base 10 = 1

at dalvik.system.NativeStart.run (Native Method)


"Signal Catcher" daemon prio = 5 tid = 3 RUNNABLE

| Group = 'system' sCount = reductions 0 = 0 obj = 0x418486f0 self = 0xfd35f8

| sysTid = 9986 nice = sched cgrp = default handle = 14590888 0 = 0/0

| schedstat = (8508000-62775385-18) stm utm = 0 = 0 = 1 core

at dalvik.system.NativeStart.run (Native Method)


"GC" daemon prio = 5 tid = 2 VMWAIT

| Group = 'system' sCount = 1 reductions = 0 obj = 0 x 41848610 self = 0xdeac80

| sysTid = 9984 nice = sched cgrp = default handle = 16052136 0 = 0/0

| schedstat = (9933376138-4731591862-7027) utm = 961 stm = kernel 32 = 1

at dalvik.system.NativeStart.run (Native Method)


ANR occurs when you take too much time to process user input. Android requires that the user input is answered quite quickly.

As you said, you are doing a job in "mouse down" and "mouse up". If this work is long to fill, ANR is inevitable.

A possible solution is to carry forward the work to do in your "mouse down" and "mouse up".

If possible, just cache of relevant values in these events and see the actual work, EnterFrame event (for example).

Tags: Adobe AIR

Similar Questions

  • 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).

  • 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.

  • 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

  • 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.

  • 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.

  • 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

  • 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!

  • 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

  • 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

  • DropShadowFilter on Air for Android

    Hi all

    Is there a known issue with the publication of air for android applications that use filters (DropShadowFilter, BlurFilter)? As when I try the publication of my phone, the movieclips in question do not even at the scene, which is strange because they work fine when I preview them as a SWF on my computer. I tried to apply the filters in the library of CS5, and make using the code in my document classes and doesn't seem to work! Of course, I tried with cacheAsBitmap (Matrix) on and outside as well.

    Just wondering if its something which is not supported? Or if there is a way around it?

    Thank you.

    Check you renderMode value 'cpu?

    Filters and 'gpu' play together at all, I think.

  • Problem with Air for android connect sqlite?

    I found use air sample connect sqlite from this website http://www.flashmove.com/forum/showthread.php?t=34778

    I copy this code into a new Air for Android models.

    then I tested in the office was ok. I do question, update, delete...

    but in the emulator Android was unable to connect to my sqlite file fail.it.

    the image below I check my data device that can not find sqlite file inside.but I do not know I pack file sqlite if the apk publication.

    a1.JPG

    can someone tell me how to connect sqlite correctly? Appeciately.

    First, never use the nativePath of File.applicationDirectory property (as in the example). It is not supported on Android. You get an empty string. While you might usually work around the writing restrictions on the application directory you using this technique on the desktop, it certainly does not work on Android. Always use URL rether than paths native to refer to the application files.

    What you need to do is to create the database in the applicationStorage directory. You can do it with SQL, or dealing in a file of database 'model' which you provided with the application of the book o the application storage directory application (using the URL not the native path, of course.)

  • Air for Android App Playbook

    I tried to use the APK for BAR converter on the blackberry site.  I used an app, I've done in the Air Flash CS5.5 for Android.  When it has been sent for approval, I was sent that the app was rejected as she asked the user install Adobe Air.

    Now, I look and see that I need a Flash Builder project?  How can I use my CS5 flash project?  Command line tools keep telling me that I don't have an application descriptor file.  I have the MyName - app.xml and bar - descriptor.xml.

    Thank you.

    You must add all your assets to the .bar file explicitly. Using graph, on the first 'build air' tab on the bottom, there is the 'additional files' try add your Active Directory it.

Maybe you are looking for

  • multiple instances of the signet library

    A "library" window will appear when "show you all bookmarks" in Firefox. If you try to sort a huge amount of bookmarks you would appreciate having several Windows Open "library". Is there an extension that allows you to have several windows open 'lib

  • I can not activate save passwords!

    When I go to tools, options, security, save password option is not put out and work. He has worked in the past, but now is not allowing me to enable the option.

  • Pavilion p6370t: startup problem

    This can be a redundant position. If so, I apologize. A few nights ago I noticed that my hard drive makes a noise during the race. The sound is finally stopped. A few days later my computer would not start up. Yellow activity led, and then went away.

  • Chave Windows vista

    I need a Windows vista 2010 chave

  • Port of SAN-Television - no operational Member

    I'm trying to set up a channel between a UCS and N5k FC port.  The environment is UCS 2.0 (3 c), 6248 s, 5548 s, EMC VNX 5300.  When I get out the uplinks FC left the channel to port, that they work fine, no error and I get successful flogi.  When I