[Solved] findViewById returns null and also : where to define my onClick?


the Problem is here: RadioButton rb = (RadioButton) findViewById(R.id.radio32);
You should show which view you are getting the RadioButton, it should be something like this:

 View v = inflater.inflate(R.layout.your_layout, container, false);
 RadioButton rb = (RadioButton) v.findViewById(R.id.radio32);

1

solved findViewById returns null and also : where to define my onClick?