I have set android:targetSdkVersion=15 and build SDK to 15 as well assuming that app will use new nice datepicker from ICS and on 2.x devices it will use old nasty one.
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="15" />
Unfortunally it istn’t working. Maybe I miss something, but according to API Demos, it should work. Where could be a problem?
EDIT: I have created sample project, where everything works fine, so maybe I need to clean or fix my project somehow.
I have solved the issue. I am using old GreenDroid lib, which used theme that extended from android:Theme.Light, so I had to change theme to android:Theme.Holo.Light a everything seems ok now. Even on 2.x devices.