Hello list, I create a tabbed view with a list and a map, this is the
code used to build the tab:

tabHost = getTabHost();

TabSpec tabSpec = tabHost.newTabSpec("tab_map");
Intent i = new Intent().setClass(this, MyMapActivity.class);
tabSpec.setIndicator("Map",
  getResources().getDrawable(android.R.drawable.ic_menu_mapmode))
  .setContent(i);
tabHost.addTab(tabSpec);

now I need to access the MapView to set some Overlay on that map but
if I try to do this:

MapView mapView = (MapView) findViewById(R.id.myMap);

the reference is always null, which is the right way? Thanks!!!

-- 
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: morettoni
ITLOSUG leader: http://hub.opensolaris.org/bin/view/User+Group+itl-osug/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to