Questions tagged [datepickerdialog]

An Android dialog that displays a date picker. Because it's an extension of the AlertDialog, it also supports buttons.

318 questions
0
votes
1 answer

Set one DatePickerDialog min day one day above other DatePickerDialog

I have two edit text boxes one for check in and another for check out date. I have taken two DatePickerDialog for that, which will open when you click on the edit text boxes, this is working well however I need it to set up so when a date is picked…
DevWithZachary
  • 3,545
  • 11
  • 49
  • 101
0
votes
3 answers

How to return Dialogue fragments result values

I created a DateandTimePickerDialogueFragment and I am calling the DateandTimePickerDialogueFragment from MainActivity. My problem is, how can I send the DateandTimePickerDialogueFragment result values to MainActivity. MainActivity: @Override public…
Krish
  • 4,166
  • 11
  • 58
  • 110
0
votes
0 answers

How set date into list view edittext from daepickerdialod?

I have try lots code and solution but not get the result. My requirement is when i click on listview edittext then open a datepicker dialog and set date into listview edittext. get the date from datepicker dialog but when i set into listview…
0
votes
1 answer

Getting data from DatePickerDialog to TextView

Hello, I need help. I have MainActivity, PickerDialogs and DateSettings and I want get date to EditText from DatePickerDialog. How can I do it? Thanks very much. Here is java classes: DateSettings.java public class DateSettings implements…
0
votes
1 answer

Disable the past date in android lollipop?

I am trying Date Picker with this link but I'm not able to fix the issue regarding disabling past date selection in android
Sidh
  • 7
  • 1
  • 7
0
votes
2 answers

Hide Ok button on onDateChanged in DatePickerDialog

I want to hide the Ok button when the date is changed. Below is the code that I have written but the buttons do not change: datePickerDialog.getDatePicker().init(year, month, day, new DatePicker.OnDateChangedListener() { …
TharakaNirmana
  • 10,237
  • 8
  • 50
  • 69
0
votes
1 answer

datepicker dialog values becomes empty

hey guys I need help with datepicker dialog because I was saving the values of it in to a variables inside onDateSet: "selectedYear", "selectedMonth", "selectedDay" those are the variable which are declared as private within the class. My issue is…
alvin valdez
  • 161
  • 3
  • 13
0
votes
1 answer

Select Datepicker with Selenium. First round OK, second round hangs

I'm setting the date of a datepicker successfully..., yeah, the thing is that I copy the code structure to set the date of a second datepicker, and that's when the problem arises. WTH I just don't know why the second try doesn't work. For example if…
Rick
  • 528
  • 1
  • 6
  • 15
0
votes
1 answer

DatePicker dialog can not opening in Android

I am trying to implement DatePicker dialog in my Android application. But, Unfortunately, dialog is not opening. My Code is as follows: public class HomeActivity extends Activity implements View.OnClickListener { private EditText…
Jaimin Modi
  • 1,530
  • 4
  • 20
  • 72
0
votes
1 answer

comparing date and time in date picker

I have a date picker dialog, using which user can select a date. Conditions are : Date must not be greater than today (system date) Date must not be older than 3 months I have done the first bit but I am not sure how to compare two dates to check…
BRDroid
  • 3,920
  • 8
  • 65
  • 143
0
votes
1 answer

How to open date picker dialog?

How Can I open Date Picker Dialog? I tried using this code, but this doesn't do anything. I believe it has been deprecated, but I haven't found the solution yet. mDOB.setOnClickListener(new View.OnClickListener() { public void onClick(View…
0
votes
1 answer

DatePickerDialog cannot implement OnDateSetListener on MaterialLibrary

I am trying to use DatePickerDialog from rey5137's material library, but it cannot implement method OnDateSetListener. This is my code dateFMCdialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() { @Override …
Sonic Master
  • 1,238
  • 2
  • 22
  • 36
0
votes
1 answer

How to make DatePickerDialog show up as a spinner instead of calendar?

I have been searching online for a while trying to figure out how to make the spinner DatePickerDialog to appear and I have tried setting android:datePickerMode="spinner" in my xml file but it is still not working. Only the calendar view is shown.
clue11
  • 147
  • 1
  • 2
  • 8
0
votes
1 answer

Update DatePickerDialog and TimePickerDialog to Current date and time

I am new to android and I am developing my 1st application for location based reminder where I am adding tasks with locations and date and time for which when I reach I should be notified. In the add task activity i have task name, location, buttons…
user2205230
  • 173
  • 1
  • 2
  • 16
0
votes
1 answer

DatePickerDialog & TimePickerDialog onXXXSet() Version 17 +/- Issue

Note, I apologize up front if this is already out there. In trying to figure this out, I found pieces of this out there, but never this whole issue & solution. So I thought I would write it up for the rest of the community. There are lots of…