sorry in advance if I come across annoyed at this point! I've been trying for multiple hours to fix this :)
So, I really don't understand java NPEs. I should be getting the intent extras and I don't.
In MainActivity.java
...
Intent i = new Intent(MainActivity.this,scriptViewer.class);
i.putExtra("script_name",script_name)
startActivity(i)
So far, it is ok, no?
Intent j = getIntent();
String script_name = j.getExtras().getString("script_name");
The program has problems with this -
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
++ Trust me, I've looked for ages, but nothing has seemed to work - TIA