Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15] Via Tender: Force close on Android with simple dialogue

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:50:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.6.0
ComponentsAndroid
Labelsandroid, tabbed
ReporterJeff Haynie
AssigneeDon Thorp
Created2011-04-15T02:22:30.000+0000
Updated2011-04-17T01:50:07.000+0000

Description

Assigned to http://support.appcelerator.net/discussions/titanium-mobile-discussion/14-force-close-on-android-with-simple-dialogue"> Tender issue #14. Showing an AlertDialog in a tabbed container is failing due to not selecting the correct context.

E/AndroidRuntime( 472): Uncaught handler: thread WebViewCoreThread exiting due to uncaught exception
E/AndroidRuntime( 472): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@43540398 is not valid; is your activity running?
E/AndroidRuntime( 472): at android.view.ViewRoot.setView(ViewRoot.java:425)
E/AndroidRuntime( 472): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:178)
E/AndroidRuntime( 472): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
E/AndroidRuntime( 472): at android.view.Window$LocalWindowManager.addView(Window.java:392)
E/AndroidRuntime( 472): at android.app.Dialog.show(Dialog.java:231)
E/AndroidRuntime( 472): at org.appcelerator.titanium.module.ui.TitaniumDialog.show(TitaniumDialog.java:107)
E/AndroidRuntime( 472): at android.webkit.WebViewCore.nativeTouchUp(Native Method)
E/AndroidRuntime( 472): at android.webkit.WebViewCore.nativeTouchUp(Native Method)
E/AndroidRuntime( 472): at android.webkit.WebViewCore.access$2400(WebViewCore.java:42)
E/AndroidRuntime( 472): at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:850)
E/AndroidRuntime( 472): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 472): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 472): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:462)
E/AndroidRuntime( 472): at java.lang.Thread.run(Thread.java:1058)

Comments

No comments

JSON Source