radiobutton set checked if
<p>I implemented a radiobuttongroup in the notepadv3 Tutorial.
I want to set a radiobutton checked if the string output is "Fehltag" or "Verspaetung".
it' not the complete source code.</p>

<pre><code>&lt;RadioGroup
    android:id="@+id/radioGroup1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" &gt;

    &lt;RadioButton
        android:id="@+id/rbtnVerspaetung"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/rbtnVerspätung" /&gt;

    &lt;RadioButton
        android:id="@+id/rbtnFehltag"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/rbtnFehltag" /&gt;
&lt;/RadioGroup&gt;
</code></pre>

<p>java:</p>

<pre><code>    private RadioButton rbtnFehltag;
    private RadioButton rbtnVerspaetung;
    private void populateFields() {

    if (mRowId != null) {
        Cursor note = mDbHelper.fetchNote(mRowId);
        startManagingCursor(note);
        mTitleText.setText(note.getString(
                note.getColumnIndexOrThrow(NotesDbAdapter.KEY_TITLE)));
        mBodyText.setText(note.getString(
                note.getColumnIndexOrThrow(NotesDbAdapter.KEY_BODY)));
        mFehlzeitText.setText(note.getString(
                note.getColumnIndexOrThrow(NotesDbAdapter.KEY_Time)));
        mTest.setText(note.getString(
                note.getColumnIndexOrThrow(NotesDbAdapter.KEY_Test)));

        String ausgabe;
        //returns Verspaetung or Fehltag
        ausgabe = note.getString(note.getColumnIndexOrThrow(NotesDbAdapter.KEY_Test));

        rbtnFehltag.setChecked(ausgabe == "Verspaetung"); //it doesn't work
        //rbtnFehltag.setChecked(true); //this is working but it doesn't peform the task

    }
</code></pre>
