When i use AnotherDatePicker [class] with StdActionBar example project. Datepicker opens up just fine on my Samsung Galaxy S2 (Android version 4.1.2) debug and on release mode, but if i change tab on the application, then it won't open again.
You should better post YOUR code instead of the originals (WHICH ALL WORKS).
With this informations you gave it is nearly impossible to give you advices!
Well actually i have not written any code to the example project. Just added AnotherDatePicker class to the StdActionBar example. And with the designer added a customview. The class module and example code are original.
Why are you removing ALL Views on Tabchange? btw: you are removing all views from activity. So i suppose you have removed the standard actionbar and the tabhost too as they are activity-views
Edit i see... It´s part of the stdactionbar example.... Hold on.. do more debugging/testing