I have an almost completely Vanilla App. All I\'m trying to do is change the text of a textView, but it gives me a NullPointerException. I have no XML configuration, no added me
You are giving setContentView() the wrong layout if your XML is actually declared as fragment_main. That is why the controls are currently null.
setContentView()
fragment_main
null
// The layout file is not correct. setContentView(R.layout.activity_second);