I am trying to think of this logically, so my MainActivity basically just creates the viewpagertabstrip using an adapter but thats all it contains, I have a map fragment as one tab and another tab containing a listView. What I am trying to do is when the user loads the app, The listView contains Latitude and Longitude. I want it to automatically add a marker on to that location, where should I load/pass my data?
public class MainActivity extends FragmentActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ViewPager viewPager = (ViewPager) findViewById(R.id.pager);
viewPager.setAdapter(new ViewPager(getSupportFragmentManager()));