I have two tabs in an Android application. One of them loads a list and the other positions me the items in this list. From tab2 I want to access the list of tab1. How can I do it?
Definition of tabs:
tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator(getString
(R.string.label_listado)),ListFragment.class, null);
tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator(getString
(R.string.label_geoposionar),getResources().getDrawable
(android.R.drawable.ic_dialog_map)),MapsFragment.class, null);
I tried to do the following:
MapsFragment ClaseMapa=new MapsFragment();
ClaseMapa.newInstance(listado);
However, it does not work for me, how could I do it?