Please tell me how when turning the Activity to save data in the AlertDialog.Builder dialog
There is an Activity in it code
AlertDialog.Builder alert = new AlertDialog.Builder(this); LayoutInflater layoutInflater = getLayoutInflater(); final View v1 = layoutInflater.inflate(R.layout.dialog_edit_car, null); alert.setView(v1); AlertDialog alertDialog = alert.show(); On the R.layout.dialog_edit_car layer are the EditText, RadioButton. Question: how to save their data when the activity is rotated. AlertDialog.Builder did not find the onSaveInstanceState and onRestoreInstanceState methods on AlertDialog.Builder. What is the right thing to do?