Two possibilities:
Change to
RadioGroup.OnCheckedChangeListener
Add this to the start of your class:
import android.widget.RadioGroup.OnCheckedChangeListener;
As for DisplayToast
, add the following:
public void displayToast(String text){
Toast.makeText(this, text, Toast.Toast.LENGTH_SHORT).show();
}
And change DisplayToast
to displayToast
in your code. Method names should start with a lower-case letter by convention. Only class names should start with an upper-case letter.