why NullPointerException with EditText?
<p>Sorry, maybe it is a beginner problem. This is a part of my MainActivity.java:</p>

<pre><code>public class MainActivity extends Activity{
...
        EditText et101 = (EditText) findViewById(R.id.editText101);
...
        public myOwnClass(String my_id){
                et000.setText(my_id)
}
</code></pre>

<p>why do I get an NPE when I use <code>et101</code> in myOwnClass? This is the error:</p>

<pre><code>Caused by: java.lang.NullPointerException
</code></pre>

<p>The error is in that line, where <code>EditText et101 = (EditText) findViewById(R.id.editText101);</code> is</p>