Why does a dialog seemingly have its one thread?
<p>I'm new to advanced programming - but from what I've read, all my android programs are on one thread. </p>

<p>This means, only one line of code or method/function can be executed at a time before moving on to the next line (that's what I thought anyway). </p>

<p>However, I'm using a custom dialog to develop this application and yet, the program continues even after the dialog has ran. I'd like my program to wait for the dialog to close so that I can receive the input and manipulate it.</p>

<p>This seems fairly straightforward when programming in Java (e.g. the Scanner tool waits for the user input before proceeding as opposed to running the code following it while it waits for user input).</p>

<p>How can I do this? </p>
