Android - New Window
<p>So I want a user to input two strings (name and email, let's say) to add a contact. I'm really struggling with it.</p>

<p>I've created an 'addPerson' class where I wanted to set this up, so I call it like this:</p>

<pre><code>Intent intent = new Intent(this, addPerson.class);
startActivity(intent);
// ^ startActivityForResult(intent, 1)
</code></pre>

<p>It always crashes here, and I think the problem is when I enter my next addPerson class. </p>

<pre><code>public class addPerson extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}
</code></pre>

<p>I know this is something so simple but I've wasted hours of trying to research it, all the examples are either too simple or too complex. Thanks!</p>
