Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 5th, 2011, 02:31 AM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change the minimum DatePickerDialog year from 1900 to 2100 for example 1 to 9999

How did everything possible to change the minimum DatePickerDialog year from 1900 to 2100 for example 1 to 9999? What kind of nonsense, why DatePickerDialog other years do not exist.

Species code (all on the forums)
Quote:
DatePicker datePicker = (DatePicker) findViewById (R.id.datePicker1);
Date minDate = new Date (1, 0, 1);
Date maxDate = new Date (9999, 11, 31);
datePicker.setMinDate (minDate.getTime ());
datePicker.setMaxDate (maxDate.getTime ());
does not work. The compiler says that setMinDate method undefined.
What a chertovshina?

dvpt is offline  
Reply With Quote
Sponsors
Old December 5th, 2011, 03:59 PM   #2 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I guess it might be that the instance you passing didn't match the setMinDate(instance type)'s type?
tkh08001 is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo