> > I would like to connect both the XML and activity class to the tab how > can I do this ? > What? You don't. Your activity references the XML layout you want the tab to display. You tell the tab which activity to use...
intent = new Intent().setClass(this, Info.class); > spec = tabHost.newTabSpec("Info").setIndicator("Info", > res.getDrawable(R.drawable.ic_tab_settings)) > .setContent(R.id.info); > tabHost.addTab(spec); > This code is wrong... You should change it to this: intent = new Intent().setClass(this, Info.class); spec = tabHost.newTabSpec("Info").setIndicator("Info", res.getDrawable(R.drawable.ic_tab_settings)) .setContent(*intent* <http://R.id.info>); tabHost.addTab(spec); Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:18 AM, Brian Muscat <brianmuscat...@gmail.com>wrote: > I would like to connect both the XML and activity class to the tab how > can I do this ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en