Questions tagged [android-datepicker]

Android DatePicker is a widget for selecting a date. The date can be selected by a year, month, and day spinners or a CalendarView. The set of spinners and the calendar view are automatically synchronized.

Android DatePicker is a widget for selecting a date. The date can be selected by a year, month, and day spinners or a CalendarView. The set of spinners and the calendar view are automatically synchronized.

Android DatePickerDialog is a dialog that hosts a DatePicker widget.

786 questions
0
votes
1 answer

datepickerdialog inside a dialog android

I have an activity thats declared as Dialog(using android:theme="@android:style/Theme.Dialog") in my application. The activity should be declared as a Dialog and there is no exception for this. Inside this dialog, i have a button, that triggers,…
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
0
votes
2 answers

Setting DatePicker not working?

I am trying to set my DatePicker to the current date in the OnCreate method of my activity: DatePicker dp = (DatePicker) findViewById(R.id.datePicker); Calendar c = Calendar.getInstance(); int day = c.get(Calendar.DAY_OF_MONTH); int…
juliet
  • 857
  • 3
  • 10
  • 22
0
votes
2 answers

Does a given time fall into a given time interval in android?

I have a time interval - 12:00 PM to 11:59 PM. When the user enters the time as "06:15 PM", check against that interval. If the time falls into that interval, return true else return false. I searched for thisin Google, but I didn't get the correct…
Yugesh
  • 4,030
  • 9
  • 57
  • 97
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
3 answers

How to set the Date in the format 12 May,2014 and Time in the format 1:30 PM using Datepicker and Timepicker in Android?

I have done the following two things in my Android app. Firstly, on clicking an edittext I am opening a Datepicker. I click on a date and the date sets on the edittext in the format 12/5/2014. I want to set it in the format like 12 May,2014. how to…
anu_r
  • 1,602
  • 7
  • 30
  • 61
0
votes
1 answer

How to connect a simple page or document with datepicker for Android

When I will click a specific date from date picker Calendar then a page will be displayed. How it will be possible? Thanks in advance
0
votes
1 answer

How to set a date in DatePicker

I want DatePicker shows a specific date when opened, unfortunately seems I can set only the date limits with setMinDate and setMaxDate. Is there a way to set a date without block the selection with date limits?
AndreaF
  • 11,975
  • 27
  • 102
  • 168
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
1 answer

How can I open Android DatePickerDialog with specific locale like iOS

I would like to open DatePickerDialog in dd/MM/yyyy format while my phone locale is set to English(United Stated) which has default format "MM/dd/yyyy". I know in iOS they have DatePicker.locale method to specify locale for that particular…
Mohit Charadva
  • 2,555
  • 1
  • 22
  • 30
0
votes
4 answers

android calendar view date picker

I want to set a DatePicker for user to choose a date, after user presses the EditText and chooses the date. I want it returned to EditText field. How may I do that? Here is my code : public class CompletedWorksActivity extends ActionBar { …
user3416113
  • 61
  • 1
  • 10
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

Android datepicker disable the dates based on year

I have implemented datepicker dialog in my app successfully, have doubt in disabling the dates, check it out my code To get the year which is 13 year above the current year DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); String…
Madhu
  • 1,780
  • 23
  • 47
0
votes
0 answers

onDateSet interface getting a stack overflow error

I have a separate java file: public class DatePickerDialogFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { // Use the current date as…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
0
votes
2 answers

Year not exceed year 2000 in Datepicker in android

I have a DatePicker in my activity. I want to set the year max limit to 2000, so that datepicker dont show years which is exceed year 2000. how can i implement this.currently i have used this code to set current date : …
Amardeepvijay
  • 1,626
  • 3
  • 17
  • 47