I have an EditText in my MainActivity. When the user clicks the NewFile activity the layout for this activity is transparent so the EditText can still be seen. I want to be able to update the EditText in the background from the NewFile activity. This is what I've tried, which results in a NullPointerException. I understand why this didn't work but what can I do instead to get the results I'm looking for.
NewFile.java
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.newfile);
newet = (EditTextLineNumbers) findViewById(R.id.ide);
newet.setText("Testing");
}