I keep getting a runtime error when launching my activity and it says android.widget.textview cannot be cast to android.widget.button?
XML:
First make sure all TextView addressing the right TextView in your .java file..
Like this..
TextView textview1 = (TextView) findViewById(R.id.textview1);
Error like Android.widget,textView cannot be cast to android.widget,button raised because some time we referred Button instead of TextView.
If everything is ok then Clean your project and refresh.. It worked for me..