Sorry, maybe it is a beginner problem. This is a part of my MainActivity.java:
public class MainActivity extends Activity{
...
EditText et101 = (EditText) findViewById(R.id.editText101);
...
public myOwnClass(String my_id){
et000.setText(my_id)
}
why do I get an NPE when I use et101
in myOwnClass? This is the error:
Caused by: java.lang.NullPointerException
The error is in that line, where EditText et101 = (EditText) findViewById(R.id.editText101);
is