title: showing messages using toast android
body: <p>I am trying to implement toast in connection handler class</p>
  
  <pre><code>public class server implements Runnable {
  private static final String TAG = "myLogs";
  .....
  public void run()
  {
  .....
  while (true) {
      try {
  
         client = server.accept();
          // here i want to show message, when client is connected
           Toast.makeText(getApplicationContext(), "msg msg", Toast.LENGTH_SHORT).show();
            Log.d(TAG, "client connected....");
  </code></pre>
  
  <p>but i got error on makeText and  getApplicationContext();
  they are underlined..</p>