[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
As I said, schoolboy error, especially since I've had to do the .setup() call before. Many thanks to both you and Dianne, Stephen :-) On May 2, 5:56 pm, Mark Murphy wrote: > You need to call setup() on the TabHost before using it, if you are > not extending TabActivity. Do that before your fi

Re: [android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Mark Murphy
You need to call setup() on the TabHost before using it, if you are not extending TabActivity. Do that before your first addTab() call. On Mon, May 2, 2011 at 12:50 PM, Stephen wrote: > Thanks for the quick response Dianne.  Please find below the stack > trace, the fragment class' code and the la

[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
(Please ignore the 'package com.test.fragtest' line. I changed that to paste it up here and just realised the actual packagename is in the stack trace anyway) On May 2, 5:50 pm, Stephen wrote: > Thanks for the quick response Dianne.  Please find below the stack > trace, the fragment class' code

[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
Thanks for the quick response Dianne. Please find below the stack trace, the fragment class' code and the layout XML. I've tried using either the default tabhost ID (android.R.id.tabhost) or an @+ ID. Both result in the NullPointerException. I'm sure it's a schoolboy error somewhere but if you (