How to retrieve the TabHost object, if you're not using TabActivity?
        Posted  
        
            by Lee Olayvar
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Lee Olayvar
        
        
        
        Published on 2010-06-05T19:32:11Z
        Indexed on 
            2010/06/05
            19:42 UTC
        
        
        Read the original article
        Hit count: 201
        
android
|android-sdk
I am attempting to use a few of the simple android examples for Tab Views. One thing i am attempting to do different than all the examples i've seen so far, is to not use a TabActivity. I am trying to use a normal activity, which means i need to retrieve the TabHost object some how, so i can add tabs and etc to it. How can this be done?
If you wanted to retrieve a view, you can simply use findViewById(R.id.blah), but how can you retrieve the TabHost object in a similar manner?
© Stack Overflow or respective owner