• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

DatePicker for API 10

Android Studio is telling me that DatePicker is only available in API 11 and above.

I need one for API 10!

Is there an equivalent to DatePicker for API 10 or do I have to re-invent the wheel with spinners
 
Android Studio is telling me that DatePicker is only available in API 11 and above.

I need one for API 10!

Is there an equivalent to DatePicker for API 10 or do I have to re-invent the wheel with spinners

The DatePicker class was added in API level 1.

https://developer.android.com/reference/android/widget/DatePicker.html

btw that page gives you a nice view of the class methods per API version. Simply adjust the API level to see what's available.

Some methods will have been deprecated. What's your exact error, and please show your code.
 
Android Studio said that I needed API 11 to use it where as I had my project set on API 10.

And there is no info on the Android site that tells me what functions are deprecated in what API versions.

It's just to much hassle.

I am over battling with Android Studio about it.

I re-invented the wheel and made myself a spinner with all possible dates in the year - nice and simple and no API version conflicts.
 
Back
Top Bottom