How to make a button unclickable for a longtime, not just in when the app is open.
i've tried this, but it works only when the app is still open :
day1.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
Intent i = new Intent(MainActivity.this, Day01.class);
day1.setEnabled(false);
startActivity(i);
myVib.vibrate(50);
}
});
thanks.