I'm trying to dynamically create tabs and a tabHost based on XML that I receive from an API.
The XML basically defines the UI and how the layout should be setup. Here's an example XML snippet: https://gist.github.com/1119132 Traversing the XML and building most of the views is all working decent at the moment, however when dealing with dynamic tab generation I'm running into some issues that I can't quite seem to figure out. Here's two snippets of part of the code that should be building the tab interface: https://gist.github.com/1119143 With this code I end up getting a NullPointerException on TabHost.addTab(), https://gist.github.com/1119148 Has anyone worked with dynamic tab building, and could maybe lend a hand at deciphering this error or finding an appropriate route to building tabs like this? -- 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