http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 8, 2012 at 5:11 AM, Brian Muscat <brianmus...@dss.com.mt> wrote: > Hi, > > I am trying to set the tab host so that each of the tabs has an XML file > and and Activity file currently I am using > > intent = new Intent().setClass(this, Settings.class); > spec = tabHost.newTabSpec("Settings").setIndicator("Settings", > res.getDrawable(R.drawable.ic_tab_settings)) > .setContent(R.layout.settings); > tabHost.addTab(spec); > > whit this tabs are viewed as it is supposed buy the Activity class is not > connected how can I do this pls? > > -- > 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 -- 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