Hi! I have a radiobuttongroup in a game app in Android. Before the user can go on to the actual game he has to choose a level, which are three radiobuttons. Now, if the user clicks "play" the app crashes. How can I use a validation to see if a button was chosen?
I have an edittext also, which I simply use a: if ((editText.getText().toString().equals(""))) to see if the user has written a name, but this doesn't work on radiobuttons, or at least my game crashes even when I try to use this type of check.
Any help appreciated!