Android Coding Error(crash)

view full story

http://stackoverflow.com – I've been trying to link 2 android activities and I've coded everything however It crashes when I tried to test it on an emulator. Could you guys please help me? I can add logcat if you need it but any help would be great. This is the code Button button; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); addListenerOnButton(); } public void addListenerOnButton() { final Context context = this; button = (Button) findViewById(R.id.button1); button.setOnClickListener(new OnClickListe (HowTos)