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

DatePickerDialog closes when rotating from landscape/portrait

I'm having problem width DatePickerDialog, because when it's opened and I turn the screen (landscape/portrait) the dialog stops. Now I'm trying to save the state of a dialog in a Bundle, but I don't really know how :/ The code: public class…
BRap
  • 529
  • 2
  • 10
  • 29
0
votes
0 answers

Calling Datepicker Dialog Twice

I'm using two datepicker dialog, one for the start date and the other is for the end date. The start date dialog works fine, but when I try to execute the second dialog which is the end date, end date dialog also shows up twice. private void…
0
votes
0 answers

Android DatePicker retrieve date

I'm developing an app which will prompt a user a DatePickerDialog, after the user insert the date i'll manage the date and add it to a listview. So far i have achieved: @Override protected void onCreate(Bundle savedInstanceState) { …
Vesco
  • 138
  • 2
  • 15
0
votes
1 answer

I am getting validation two times in this method, how to avoid it?

When i click date button get date picker dialog and select date, that date will stored in edit text. this time i will perform validation for date. means the date is less than current date it will display alert. This time i got alert but two alerts…
venki
  • 77
  • 2
  • 10
0
votes
2 answers

Android DatePickerDialog wait for dismiss

Today imma trying to develop a simple app, which will ask the user to insert 2 dates by using the DatePickerDialog through a button, and then execute a query into a Database: Button.setOnClickListener(new OnClickListener(){ …
Vesco
  • 138
  • 2
  • 15
0
votes
0 answers

Setting minimum date in date picker dialog gets force closes on versions above honeycomb and works fine on versions below honeycomb

I have 2 datepicker dialogs in my fragment. The date picker activates when clicking on buttons. I have 2 buttons 1 for setting depart date and the other for setting the return date. clicking on the depart button pops one datepicker dialog and…
0
votes
2 answers

DatePickerDialog hide Month(can't find mMonthSpinner or mMonthPicker using reflect)

I knew how to hide year or day in DatePickerDialog. Use reflect. But I found it didn't work on Month. I can't find field mMonthSpinner or mMonthPicker. It's very strange because I truly found them in source code. DatePicker datePicker =…
0
votes
2 answers

Issue of "Next" IMEOption with birthdate picker

I am doing this for signup screen. I am having three fields email, birthdate and password. In birthdate edit text I am displaying birthdate picker dialog. I don't want to let user update birthdate by typing. That's why i gave focusable as "false"…
0
votes
1 answer

Setting the time for both DatePicker fields in a DatePickerDialog

I am trying to create a DatePickerDialog when a certain TextView is clicked, and then set the date picked to be that TextView. I have gotten this to work, but when the DatePickerDialog is shown, the dates for left DatePicker are correctly set to the…
0
votes
1 answer

Exception dispatching input event with DatePickerDialog on EditText Touch

I am using DatePickerDialog in my activity. Now, for Updating data, I am using EditDataActivity, in which EditText contains Date. And When I touch on EditText I am getting error Exception dispatching input event. Please help me to solve this…
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111
0
votes
1 answer

Click Back button or out of the DatePicker dialog, sets the date. Can anyone help me to fix it?

This happened with the Nexus 7 device. I have tested on Samsung devices and it's working properly. Also with the Nexus 7 device, the Cancel button is not showing at all. Thanks in advance.
Gaurav Darji
  • 488
  • 5
  • 12
0
votes
4 answers

DatePickerDialog opens more than one time when touches EditText

I am using DatePickerDialog in my application. It is Fragment. Now, Issue is that when I couch on EditText, It open dialog 3 times. I am using Total 2 DatePickerDialog for 2 different EditText and 2 TimePickerDialog for 2 different EditText…
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111
0
votes
2 answers

Disabling DatePickerDialog

I have a datepicker from here that I have to enable and disable with a button click. I…
Lendl Leyba
  • 2,287
  • 3
  • 34
  • 49
0
votes
1 answer

Bug or error in DialogPicker

i have a edittext, when edittext is clicked, it will show a DialogPicker. My object: static final int DATE_DIALOG_ID = 1; private EditText txtDate; private EditText tambah; here my code: txtDate = (EditText)…
user3505775
  • 339
  • 2
  • 6
  • 20
0
votes
1 answer

User should not be able to select the date before today's date android

It is my XML file named create_event.xml
user3388240
  • 27
  • 1
  • 7