title: Android MapView + Tab example
body: <p>i need to have an mapview on a tab.
  The <a href="http://www24.zippyshare.com/v/37272515/file.html" rel="nofollow noreferrer">attached example</a> shows how to do this if using intents.
  Now i want to change the zoom level of the mapview(s).
  How can i do this, although i'm using intents (or is there completely
  different solution)?</p>
  
  <p>Activity code:  </p>
  
  <pre><code>public class TabMapsExample extends TabActivity {    
      TabHost mTabHost;        
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);  
          Context ctx = this.getApplicationContext();         
          //tab 1
          mTabHost = getTabHost();
          TabSpec tabSpec1 = mTabHost.newTabSpec("tab_test1");
          tabSpec1.setIndicator("Map1");
          Intent i1 = new Intent(ctx, MapTabView.class);
          tabSpec1.setContent(i1);
          mTabHost.addTab(tabSpec1);          
          //tab2
          mTabHost = getTabHost();
          TabSpec tabSpec2 = mTabHost.newTabSpec("tab_test1");
          tabSpec2.setIndicator("Map2");
          Intent i2 = new Intent(ctx, MapTabView.class);
          tabSpec2.setContent(i2);
          mTabHost.addTab(tabSpec2);          
          //tab 3
          mTabHost = getTabHost();
          TabSpec tabSpec3 = mTabHost.newTabSpec("tab_test1");
          tabSpec3.setIndicator("Map");
          Intent i3 = new Intent(ctx, MapTabView.class);
          tabSpec3.setContent(i3);
          mTabHost.addTab(tabSpec3);    
      }
  }
  </code></pre>
  
  <p>Layout code:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/maptablayout" android:orientation="vertical"
      android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_height="fill_parent" android:layout_width="fill_parent"
          android:background="#000000" android:orientation="vertical"&gt;
          &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent" android:layout_height="50px"
              android:id="@+id/textview" /&gt;
          &lt;com.google.android.maps.MapView
              android:id="@+id/mapview" android:layout_width="fill_parent"
              android:layout_height="fill_parent" android:clickable="true"
              android:apiKey="" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>thx</p>