For some reason, my application crashes when I try to install text textview? How can i do this.
private TextView strStatus; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); txtUsername = (EditText) findViewById(R.id.username); strStatus = (TextView) findViewById(R.id.status);
<TextView android:id="@+id/status" android:layout_width="fill_parent" android:layout_height="wrap_content" />
source share