The DatePicker widget in Android has a range of possible values for each field (day, month, year). The minimum value can be set using the “android:startYear” attribute, the maximum value with “android:endYear”.
But is the range of possible values device-specific? I mean, can you set the minimum value for the year to “0000” or are there any devices that don’t support this value for a DatePicker’s year field?
If one does a bit “research” in the Android source, it becomes obvious that the default values for “startYear” and “endYear” are “1900” and “2100”. These values can be overwritten with any integer value.
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/widget/DatePicker.java#135
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/widget/DatePicker.java#44
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/com/android/internal/widget/NumberPicker.java#154