Q:

How to use a conditional statement in Android

I'd like to use a conditional statement to change the amount shown in a TextView. 
But when running the application, the second else statement is executed always. How do I correctly check for the conditional expression?
This is my code:
public class SecendActivity extends Activity {

private TextView txtV_setText;
private EditText editText_factNumber;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.secend_activity);

    txtV_setText = (TextView) findViewById(R.id.textview_set);
    editText_factNumber = (EditText) findViewById(R.id.number_text);
}

public void setText(View view) {

    if (editText_factNumber.equals(null)) {
        txtV_setText.setText("Change Text Behind");
    } else {
        txtV_setText.setText("Change Text Behind2");
    }

}

A:

In the above you are referencing the object or view EditText, not its contents.
You're probbably looking for 
editText_factNumber.getText().toString()

