If I set the text of a TextView in XML, like this:
    <TextView
        ...
        android:text="0" />
Can I compare that string in Java? Doing this:
    private void InitializeMethod() {
        A_1  = tv_1.getText().toString();
    }
    private void CheckAnsMethod() {
        if (A_1 == "0"){
            correctAns.start();
            }
        }else{
            wrongAns.start();
        }
    }
causes the sound 'wrongAns.mp3' to be played...
 
     
    