接続ハンドラ クラスにトーストを実装しようとしています。
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....");
しかし、makeText と getApplicationContext(); でエラーが発生しました。下線が引かれています..