I have a number of radio buttons on my menu. However, whenever onResume() is called, I found that it will reset all the radio buttons values to default. What I can do to keep it maintained to the previous status?
***Update I know the status of the buttons. However, they are reset. I wanna find way to manually reset them. However, I found that I used the code
getMenuInflater().inflate(R.menu.menu_main, menu);
to try to get the menu and hence the MenuItem caused NullPointerException at the method onResume(). How can I get the menu and hence set the menuItems?