title: Android: stopping the thread while using Alert Dialog
body: <p>I have a program which first detects whether SD-card is present or not, if sd-card is not present, an alert dialog is presented which asks the user to retry or to exit. In short, sd-card is a must. However, in the case where there is no sd-card, the application continues working on the thread or the thread continues even after going the alert dialog part of my application. in short, what I want is that my application should wait for the alertdialog and get the input from the user. </p>
  
  <p>Can anyone help me here.. thanks</p>