title: Posting Toast message from a Thread
body: <p>My application launches a thread to query the web for some data.  I want to display a Toast message when nothing is found, but my application always crashes.</p>
  
  <p>I've tried using the application Context from within the thread, like so:</p>
  
  <pre><code>Toast.makeText(getApplicationContext(), "testttt", Toast.LENGTH_LONG).show();
  </code></pre>
  
  <p>I've also tried creating a Runnable with the Toast call and calling runOnUiThread(runnable) from the Thread (the Toast call in this runnable uses the Activity as the first parameter).</p>
  
  <p>Does anyone have any ideas on how to accomplish this?</p>