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

onDateSet does not get called from DatePickerDialog on tablet

I am using a DatePickerDialog to prompt the user for a date. It works fine in the simulator and on my Samsung Galaxy Nexus, but onDateSet does not get called on my Samsung Galaxy Tab 2. I noticed, that the dialog is bigger and shows a calendar…
cit
  • 217
  • 5
  • 13
0
votes
0 answers

AlertDialog crashed after DatePickerDialog

All Hi! If I show DatePickerDialog and click button negative, next I want show AlertDialog but he crashed. If I show DatePickerDialog and click button_positive - then all is well (AlertDialog can show). protected Dialog onCreateDialog(int id) { …
0
votes
2 answers

datepicker dialog using DialogFragment for multiple activities

I need to use DatePicker dialog using the new DialogFragment class for multiple activities. I am having more than two activities using datepicker and time picker. I succeeded using the example in developer.android.com for Dialog Fragment for single…
maddy.999
  • 13
  • 6
0
votes
4 answers

Robotium: let Solo click on DatePicker in localized build

I am performing a click on the "Set"-button in a DatePickerDialog with Robotium via solo.clickOnButton("Set"); If I now change the language of the testing device to a different language, Robotium is not able to find the button, as the text is not…
Micky
  • 5,578
  • 7
  • 31
  • 55
0
votes
1 answer

How do I show the soft keyboard while dismissing DatePickerDialog?

I'm trying to load the soft keyboard while I dismiss a DatePickerDialog. It appears to be a timing issue. The DatePickerDialog still has focus, so attempting to show the soft keyboard does nothing. However, if I use a handler to cause a delay, it…
Quentamia
  • 3,244
  • 3
  • 33
  • 42
-1
votes
1 answer

Show dates according to a selected day of week

I have a problem where when I select a day from a spinner (ex. Wednesday), I want to show only the dates of Wednesday in DatePickerDialog. How can I make that happen? I want to disable other dates and enable the days that match the selected spinner…
Neil
  • 37
  • 1
  • 8
-1
votes
1 answer

How can I disable the editText view on the DatePickerDialog?

I would like to disable the EditText behaviour on DatePickerDialog when the theme is set to theme_traditional public class M3DatePickerDialog extends DialogFragment { private DatePicker mDatePicker; private OnDatePickerInteractionListener…
-1
votes
1 answer

Minimum API for DatePicker

I'm testing just a sample of code in order to implement in other app, but I have got an error saying that the minimum API required in order to use getInstance() is 24, and I'm current using API 16. But I had searched on the Internet and it appears…
-1
votes
4 answers

Setting Date to editText using Date picker

I want to set two different Date(s) to two different EditText(s) using datePickerDialog. i am using two different String objects to store date and then setting them on two different EditText(s) respectively but the problem is both the EditText(s)…
Suhas Wagre
  • 100
  • 1
  • 1
  • 9
-1
votes
1 answer

Java ';' expected error

I'm struggling for some days with some code. Many tries, see my other questions. Now they expect a ";" but I don't know why. holder.valueLabel.setOnClickListener(view -> { if (item.value.equals("")) try { …
Haast
  • 19
  • 7
-1
votes
1 answer

Setting minimum date on other date picker relevant to another date picker

I know that this may have been asked before, but I cant find a solution for my problem. I have two DatePickerDialogs in which, whenever the start date is set, i'll set the minimum date of the other datepickerdialog to that date. But it is still not…
MetaSnarf
  • 5,857
  • 3
  • 25
  • 41
-1
votes
2 answers

DatePickerDialog in Android always shows the previously set date

I am doing the following in my app: 1.I have two EditText boxes. On clicking each of them a DatePickerDialog pops up. I set the date in the Datepicker. On closing the dialog box the date gets set in the edittext. The problem is as follows. After…
anu_r
  • 1,602
  • 7
  • 30
  • 61
-1
votes
2 answers

DatePickerDialog is not displayed on click of the button

Following Button is part of a fragment butndob.setOnClickListener(new View.OnClickListener() { @SuppressLint("NewApi") @Override public void onClick(View v) { // TODO Auto-generated method stub …
Deepti
  • 119
  • 4
  • 12
-2
votes
1 answer

error: non-static method show() cannot be referenced from a static context DatePickerDialog.show();

I am developing a date-picker dialog in my application by using this tutorial (youtube link https://www.youtube.com/watch?v=AdTzD96AhE0), in which I am taking the input from the user by using date-text by applying date-picker dialog, and it is also…
-2
votes
2 answers

why are widgets displayed differently in different versions of android?

i've an app that has a DatePickerDialog. when i run the same code on different devices run different androids i get a different dialog. I understand the fact that in different versions of android the same widget can look athetically different but…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
1 2 3
21
22