How do you call the showing of the dialog?
Is it on the main UI thread (and not on the test-case thread)?

On Feb 8, 11:47 am, Matthias <[email protected]> wrote:
> Hi,
>
> we're running into an issue here where in a unit test for an activity,
> we test a dialog that's part of the activity. However, as soon as
> control flow reaches the call to Dialog.show, the test case crashes
> with an exception:
>
> Test run failed: android.view.WindowManager$BadTokenException
>
> the activity window seems to be valid, and clicking buttons and
> everything works fine. Are dialog interactions generally not possible
> in ActivityUnitTestCase? Why?
>
> Thanks a lot,
> -Matthias

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to