I am trying to implement toast in connection handler class
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....");
but i got error on makeText and getApplicationContext(); they are underlined..
 
     
     
     
     
     
     
    