0

hey could anyone please tell me how to create a dialog from a background thread that is not a UI thread in Android??
something like this..

Thread t=new Thread(new Runnable() {
    @Override
    public void run() {
        Thread innerThread=new Thread(new Runnable() {
            @Override
            public void run() {
                /////***** i need to create a dialog here *****////
                /////***** but the dialog doesn't appear or it closes too soon
                /////      to be able to record a user input *****////
            }
        });
    }
});
2
Contributors
3
Replies
9
Views
4 Years
Discussion Span
Last Post by peter_budo
0

the thing is I want the dialog box to block the thread which created/showed it until I get a response from the dialog box..could you please give me a few hints on how to do that??

i'm trying to make the game thread pause till the dialog box is dismissed after the input is received..

Edited by cool_zephyr

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.