On Tue, Jun 22, 2010 at 9:48 PM, shakeel <[email protected]> wrote: > I am getting stack overflow problem. > > My activity is working fine if I run it independently, but gives > stackoverflow when I add it to tabhost. > > I am using sdk1.5 and I can't reduce my hierarchy. > > I am looking for alternative approach to tabhost.
Move all the logic that is common to the tab and the standalone activity to a custom View class. Then use that View class as a tab in the TabActivity and as the value for setContentView() in the standalone activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

