) I\'m in a process of creating a memory game. My problem is that whenever i click for the second time, i can\'t even see toggled button. To be clear - first click toggles t
b.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
// TODO Auto-generated method stub
final ProgressDialog myPd_ring=ProgressDialog.show(MainActivity.this, "confident checker", "calculating please wait..", true);
myPd_ring.setCancelable(true);
new Thread(new Runnable() {
public void run() {
// TODO Auto-generated method stub
try
{
Thread.sleep(5000);
}
catch(Exception e){}
b.dismiss();
}
}).start();
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "today your confident level is 90% ",
Toast.LENGTH_LONG).show();
}
}, 5000);
}
});