Nasty problem: blank screen after resuming app, then app freezes (ANR keyDispatchingTimedOut)

You must Login before you can answer or comment on any questions.

Hope someone can help me out here. I am working on some apps that all have the same problem: blank (black in my case) screen after being to long in the background. App then freezes and the generated report says:

ANR keyDispatchingTimedOut in TiTabActivity
Freeze
Activity appname.android.app/ti.modules.titanium.ui.TiTabActivity
Cause ANR keyDispatchingTimedOut
Also tried adapting my tiapp.xml, without any luck, looks like this:
<android xmlns:android="http://schemas.android.com/apk/res/android">
        <tool-api-level>8</tool-api-level>
        <manifest android:installLocation="auto" android:versionCode="2" android:versionName="1.1">
            <uses-sdk android:minSdkVersion="7" />
            <supports-screens android:anyDensity="true"
                android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
            <application>
                <activity android:alwaysRetainTaskState="true"
                    android:configChanges="keyboardHidden|orientation"
                    android:label="Applabel"
                    android:name=".ApplabelActivity" android:theme="@style/Theme.Titanium">
                    <intent-filter>
                        <action android:name="android.intent.action.MAIN"/>
                        <category android:name="android.intent.category.LAUNCHER"/>
                    </intent-filter>
                </activity>
            </application>
        </manifest>
    </android>
Using Studio 1.0.7.201112281340, SDK 1.8.0.1, deploying on Android 4.0/4.0.3

Also tried latest builds/Android 2.2.3 and older builds (1.7.6). Problem's still there.

Link from the Android market stacktrace: http://pastebin.com/mBPCNuTC

Thanks in advance!

— asked 1 year ago by Arjan Brinkman
5 Comments
  • Hello,

    is this happening on simulator and device? If you can reproduce in Android 2.x, can you share a little bit of code that reproduces this issue? So we can help better.

    Best,

    Mauro

    — commented 1 year ago by Mauro Parra

  • hello mauro,

    this is not happening in the emulator, only device (tested on multiple devices: galaxy s2, galaxy Y and a HTC).

    My app structure is like kitchensink, very basic. Using a tabgroup and behind the tabs some basic tables with data from a feed.

    This is my app.js: http://pastebin.com/rkZ5tMzB

    — commented 1 year ago by Arjan Brinkman

  • I have these same problem in mine app.

    — commented 1 year ago by Jakub Rzepecki

  • Show 2 more comments

2 Answers

Note: I just tried a complete new build with Android 2.X, but same problem. Same **** black screen followed by an ativity error. I am getting frustrated after working on this for weeks and this bug doesn't seem to get away.

hope you can help!

Your Answer

Think you can help? Login to answer this question!