Now getTabHost() triggers this error.. "Could not create tab content because could not find view with id 2131034121"
2008/11/30 Mark Murphy <[EMAIL PROTECTED]> > > Lawrence Samantha wrote: > > Hey Mark! > > I have your book, it's a good book for android beginner like me.. when > > is version 1.9 going to come out? > > Within 36 hours, I hope. > > > Anyway, I remove the two setup call and follow your example, and now > > it's getting java.lang.NullPointerException null as soon as it reach > > > > final TabHost tabs = (TabHost) findViewById(R.id.tabhost); > > > > Here's part of my current code: > > > > final TabHost host = (TabHost) findViewById(R.id.tabhost); > > Since you're inheriting from TabActivity, try getTabHost() instead. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.4 Published! > > > > -- Lawrence Samantha --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

