Why is RadioButton returning NULL?

view full story

http://stackoverflow.com – I have a dialog with 4 RadioButtons in a RadioGroup and am trying to return the ID of the button clicked but I keep getting a NullPointerException. I've looked at several examples and don't see how mine differs. <RadioGroup android:id="@+id/radiojqmobdiv" android:layout_width="match_parent" android:layout_height="wrap_content" android:checkedButton="0" android:orientation="horizontal" > <RadioButton android:id="@+id/jqpage" android:layout_width="wrap_content" (HowTos)