Inside Select Case I used this
getFragmentManager().beginTransaction()
.replace(R.id.frame_entry, new fragment_1())
.addToBackStack(null)
.commit();
to switch between fragments, but I have a problem with it. The fragment contains EditText with a pre-selected values. When I go to fragment_2 and then return to fragment_1 the selected value on my EditText is gone. How can I make the value stay?