I keep getting a runtime error when launching my activity and it says android.widget.textview cannot be cast to android.widget.button?
XML:
you are trying to cast TextView to Button.
TextView
Button
for TextView do this :
TextView tv = (TextView)findviewById(R.id.your textviewid present in xml layout file);
for Button :
Button btn1 = (Button)findviewById(R.id.your buttonid present in xml layout file);