Application crashes when i set an onclicklistener

view story

http://stackoverflow.com – Here is my code Help me out guys. if I remove the select.setonclicklistener. It works like a charm but adding this line crashes the application. Doesn't even show this class. public class Play extends Activity implements OnClickListener{ private Button sideshow; private int i = 0; private ImageView[] user_images = new ImageView[6]; private int noc; private int[] user_cards_ids = {R.id.card_1,R.id.card_2,R.id.card_3,R.id.card_4,R.id.card_5,R.id.card_6}; private ArrayList<Integer> user_cards; @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceSt (HowTos)