Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-11 Thread Brian Muscat
Thanks should I use 2 setcontent? On Thursday, May 10, 2012 6:26:07 AM UTC+2, MagouyaWare wrote: http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 Thanks, Justin Anderson MagouyaWare Developer

Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-11 Thread Justin Anderson
No... just the one that takes your intent. You are creating the intent but never using it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:23 AM, Brian Muscat brianmuscat...@gmail.comwrote: Thanks should I use 2 setcontent?

Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-11 Thread Brian Muscat
OK then how should i connect the xml On 11 May 2012 18:12, Justin Anderson magouyaw...@gmail.com wrote: No... just the one that takes your intent. You are creating the intent but never using it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware

Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-11 Thread Justin Anderson
Your activity itself has a connection to the XML. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:36 PM, Brian Muscat brianmus...@hotmail.co.ukwrote: OK then how should i connect the xml On 11 May 2012 18:12, Justin Anderson

Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-11 Thread Brian Muscat
what should be the code On 11 May 2012 21:41, Justin Anderson magouyaw...@gmail.com wrote: Your activity itself has a connection to the XML. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:36 PM, Brian Muscat

Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-11 Thread Justin Anderson
what should be the code What? To get an Activity to display something, you call setContentView() with a reference to your xml layout... This is pretty basic stuff here. http://developer.android.com/reference/android/app/Activity.html#setContentView%28int%29 Thanks, Justin Anderson MagouyaWare

[android-developers] Tab Host linking with XML file and Actitivity class

2012-05-09 Thread Brian Muscat
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,

Re: [android-developers] Tab Host linking with XML file and Actitivity class

2012-05-09 Thread Justin Anderson
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