Simple Droid App force closes when switching activities
<p>I new to app development and I have been working on a Flash card app. There is a main screen and the user chooses a button. On the emulator when I touch a button to go to a new activity, my app force closes. 
I have added the activity in the manifest.
The second activity has its own layout (main2.xml).
My buttons look like this:</p>

<pre><code>Button add = (Button) findViewById(R.id.add);
add.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        Intent addIntent = new Intent(view.getContext(), Add.class);
        startActivity(addIntent);

    }
});
</code></pre>

<p>Any ideas of what's going wrong? If more info is needed I can supply it, I've been stuck here for two days. 
Thanks</p>
