@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setup_server); Button testBtn = (Button) findViewById(R.id.sbTest); testBtn.setOnClickListener(this); mapp = (MeltdownApp) getApplication(); auth = new ConfigFile(this); if (mapp.isAppConfigured()) { TextView tv = (TextView) findViewById(R.id.sServerUrl); tv.setText(auth.getURL()); } }