[Solved] Button a button unclickabale in Android
Suppose you have five question. when he reached the last question. He definetly submit or click next. on that just pass a boolean variable in Intent if it is in an other Activity. Intent intent = new Intent(CurrentActivity.this,Destination.class); intent.putExtra(“flag”,true/False); startActivity(intent); getting intent in another activity.. boolean flag = getIntent.getExtra().getBoolean(“flag”); if(flag) // button.setEnabled(false); else // do … Read more