RSS

Prevent user from setting previous DateTime in android

07 Apr

Solution for this is moved and maintain on
https://nikshits.blogspot.in

Advertisements
 
2 Comments

Posted by on April 7, 2014 in Android Source Code

 

2 responses to “Prevent user from setting previous DateTime in android

  1. Padmanabham Vishwakarma

    September 11, 2016 at 8:43 AM

    How to do it in fragment ?

     
    • Nikhil Lotke

      November 7, 2016 at 6:44 AM

      Hi Padmanabham,
      Above functionality can be achieved by using DialogFragment. The same xml can be inflate in DialogFragment and take control of DatePicker as well as TimePicker to prevent user from setting previous DateTime.

       

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: