While trying to create a clickable ImageView, I received this error:
11-21 15:35:15.940: E/AndroidRuntime(7607): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mctexpert.android.ishunt/com.mctexpert.android.ishunt.MenuScreen}: java.lang.ClassCastException: android.widget.Button
The problem was it thought that I was trying to work with a button as opposed to the image. I ended up deleting the ImageView from the layout and then recreating it. That took care of this problem.
No comments:
Post a Comment