Simple android app to print text
<p>I recently started watching youtube videos about android development. I watched a few and tried to write my own app. Basically what it does is, the user enters a text in the text field and when the user presses the click button, the entered value is displayed on a text view. </p>

<p>I am very confused as to where I should define variables and how to retrieve values and how to show values on a specific item. I want to know this stuff so I can correctly begin developing android apps. This is the code that I currently have:</p>

<pre><code>package com.abihnav.numdisplayer;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends Activity {

public String YOUR_NUM = "YOUR_NUM";

EditText numEditText;
TextView textView;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    EditText numEditText = (EditText) findViewById(R.id.numEditText);
    TextView textView = (TextView) findViewById(R.id.textView1);
}

public void printNum(){
    YOUR_NUM = numEditText.getText().toString();
    textView.setText(YOUR_NUM);


}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

}
</code></pre>

<p>Whenever I enter text or a number, the app force closes. HELP?!</p>
