samedi 30 janvier 2016

Android String if use

TextView text = (TextView)findViewById(R.id.postOutput);
    String x = text.getText().toString();
    if ("hata".equals(x)){
        Toast.makeText(getApplicationContext(), "hata", Toast.LENGTH_LONG).show();
    }

if structure does not work. Help please

Aucun commentaire:

Enregistrer un commentaire