「android」androidでスレッド処理する方法

javaコード下記:
new Thread(new Runnable() {

@Override
public void run() {
new Thread(new Runnable() {

Handler mHandler = new Handler(Looper.getMainLooper()) {
@Override
public void dispatchMessage(Message msg) {
Toast.makeText(getApplicationContext(), “年収〇〇万円", Toast.LENGTH_LONG).show();
}
};

@Override
public void run() {
mHandler.sendEmptyMessage(0);
}
}).start();
}
}).start();

Android

Posted by arkgame