My problem is i am unable to handle the portrait and landscap mode operations. In the screen i have one register form but that is in gone state. When i click register button that will come. So when i goes to landscape in that if i am rotate the screen what will come again in the gone in portrait. So please give some suggestions how can i handle that.
code:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.equipmentmanagement);
context = this;
insertAnalasysMethodVlaues();
insertEquipmentTypeValues();
initUI();
showEquipmentTypeSpinner();
showAnalasisTypeSpinner();
equipmentTable = new EquipmentTable(context);
listequipment = equipmentTable.selectAllRecords();
showRecords(listequipment);
equipment_add.setOnClickListener(this);
equipment_search.setOnClickListener(this);
search.setOnClickListener(this);
insert.setOnClickListener(this);
cancel.setOnClickListener(this);
equipmentmanagement_text.setOnClickListener(this);
equipment_loadall.setOnClickListener(this);
equipment_type_spinner.setOnItemSelectedListener(this);
analysis_method_spinner.setOnItemSelectedListener(this);
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}