[android-developers] Re: TabHost and New Activities

2008-12-15 Thread Eric Chan
you need add any new activity to your AndroidManifest.xml used by tabhost 2008/12/1 Guillaume Perrot guillaume.p...@gmail.com A working code: public class UbikIMActivity extends TabActivity [...] @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); [...]

[android-developers] Re: TabHost and New Activities

2008-11-30 Thread Lawrence
Hi all, same problem here.. I've been trying to debug this problem all day long and can't seem to find the breakthrough. I'm using tabhosts to create tabs on the main screen, then I try to put list inside the other tab.To achieve that, I'm using setContent(Intent e ) methods.. hoping that the

[android-developers] Re: TabHost and New Activities

2008-11-24 Thread Guillaume Perrot
On Nov 24, 1:42 am, Dianne Hackborn [EMAIL PROTECTED] wrote: On Sun, Nov 23, 2008 at 3:45 AM, Guillaume Perrot [EMAIL PROTECTED]wrote: * you can't bind to a service, onServiceConnected will never be called. This is a bug that should be fixed in the future.  Not documented because we

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread Guillaume Perrot
Activities inside TabAcitivity are not true acitivities, and so have some limitations that I noticed. And of course, no documentation about that: * you can't bind to a service, onServiceConnected will never be called. * window features (only available in the TabActivity). * you can't use most of

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread g1bb
Hi Mark, I have no problem with that at all. I found this API demo: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/Tabs3.html Which is exactly what I want, but now I'm having a hard time deriving from that subclass. Is there an example anywhere of how to do

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread Mark Murphy
g1bb wrote: I have no problem with that at all. I found this API demo: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/Tabs3.html Which is exactly what I want, but now I'm having a hard time deriving from that subclass. Is there an example anywhere of how

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread g1bb
Hi Mark, My question now is, now that I have the subclass created, how do I create the tabs using _it_, instead of how I was doing it before via the code in my first post? Thanks again for your help. On Nov 23, 12:23 pm, Mark Murphy [EMAIL PROTECTED] wrote: g1bb wrote: I have no problem

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread g1bb
Eureka! I got this to work by taking a look at this sample project: http://www.mail-archive.com/android-developers@googlegroups.com/msg06956.html Set my class that extends TabActivity as the main layout. Thanks again Mark for your help. On Nov 23, 12:45 pm, g1bb [EMAIL PROTECTED] wrote: Hi

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread Dianne Hackborn
On Sun, Nov 23, 2008 at 3:45 AM, Guillaume Perrot [EMAIL PROTECTED]wrote: * you can't bind to a service, onServiceConnected will never be called. This is a bug that should be fixed in the future. Not documented because we didn't realize it was broken. :) * window features (only available

[android-developers] Re: TabHost and New Activities

2008-11-22 Thread Mark Murphy
g1bb wrote: I've been trying to start new activities based on a TabHost using the following code: setContentView(R.layout.main); TabHost tabs = (TabHost)this.findViewById(R.id.th_set_menu_tabhost); tabs.setup();

[android-developers] Re: TabHost and New Activities

2008-11-22 Thread g1bb
Gotcha, but how do I define activityGroup as a LocalActivityManager? (I assume that's what it's wanting) Sorry, I can't find much documentation on this. Thanks again. On Nov 22, 3:20 pm, Mark Murphy [EMAIL PROTECTED] wrote: g1bb wrote: I've been trying to start new activities based on a

[android-developers] Re: TabHost and New Activities

2008-11-22 Thread Mark Murphy
g1bb wrote: Gotcha, but how do I define activityGroup as a LocalActivityManager? (I assume that's what it's wanting) If you're not subclassing TabActivity, can you? If the docs are right, that should clear up your problem. Since TabActivity inherits from ActivityGroup, my guess is that the