title: Launch AlertDialog not from an Activity
body: <p>I am trying to launch an alert dialog when not in a class that extends activity, but I am on the GUI thread. I have access to my applications context and attempt to launch the alert dialog with that but get an error: </p>
  
  <blockquote>
    <p>02-12 00:48:07.412: ERROR/AndroidRuntime(1322): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application</p>
  </blockquote>
  
  <p>Does anybody know what I am doing wrong on this one?</p>