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 *****////
}
});
}
});