Move this into onCreate after setContentView:
TextView tvTest = (TextView)findViewById(R.id.testText);
findViewByID() references the layout inflated by setContentView(). So it you use it beforehand, null is returned, hence a null pointer exception when you call a method on tvTest.