Curiously enough I have not had problems with rotating the screen and controls, until now, I have my controls, until the
Fragment arrived I have that happy problem when rotating the device loses the instance of the controls:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText ()' on a null object reference
Method that controls the data:
viewPager.setOffscreenPageLimit(2); MF_F_Datos mff_data = (MF_F_Datos) adapter.getItem(0); MF_F_Galeria mff_galeria = (MF_F_Galeria) adapter.getItem(1); mff_data.ActMuestraDatos(_id_mf_l, mod);
As long as you do not rotate the screen the app works fine.