[EMAIL PROTECTED] wrote: > I wish there was an edit button here! > > How can I perform a null check on an int? > If I use > > if (checkedId != null) > I get the error "The operator != is undefined for the argument type(s) > int, null".
I think onCheckedChanged() is supposed to have a boolean second parameter: http://code.google.com/android/reference/android/widget/CompoundButton.OnCheckedChangeListener.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---