how to pass parameter to new activity with tab host
<p>Hi friends 
         I am passing parameter to new activity using tab host in android but it showing illegal exception</p>

<pre><code> Intent homeintent;   
    // Create an Intent to launch an Activity for the tab (to be reused) 
    homeintent = new Intent();
     Bundle bundle=getIntent().getExtras();
     String strusername=bundle.get("strUserName").toString();
     String strPassWord=bundle.getString("strPassword").toString();
     String questGroupId=bundle.getString("questGroupId").toString();
     homeintent.putExtra("strUserName", strusername);
     homeintent.putExtra("strPassword",strPassWord );
     homeintent.putExtra("questGroupId",questGroupId);
      homeintent.setClass(this, HomeActivity.class); 
       spec = tabHost.newTabSpec("home").setIndicator("Home",res.getDrawable(R.drawable.home_tab_bar_icon)).setContent(homeintent);
    tabHost.addTab(spec); 
</code></pre>

<p>can anybody tell how to pass parameter using intent with tabhost in android</p>
