Hi All,I am trying to get the map to reappear after switching views. The basic setup is the user presses a button that switches to a table layout. Afterwards, if the back button is pressed, the view is switched back to the main layout. But, when this switch occurs the map is blank. Any suggestions on this issue?
setContentView(R.layout.table);
/*Create table code*/
//Inflate table layout
View view = LayoutInflater.from(MDHealthMobileActivity.this).inflate( R.layout.table,null);
//Back button
backBtn = (Button) findViewById(R.id.backBtn);
backBtn.setOnClickListener(new OnClickListener () {
public void onClick(View v) {
setContentView(R.layout.main);
});
-Corey