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
2 answers

Android : Static Spinner values match based on DatePicker

I have a DatePicker with a button that gives a DialogBox to select date and an EditText txtDate to set the date on it : Layout:
MetaldroiD
  • 436
  • 2
  • 5
  • 17
0
votes
1 answer

Android DatePicker : Previous dates are not disabled on my phone after installation but works PERFECTLY on the emulator

I'm using a DatePicker with a Button to select from theDialog and then display it on an EditText. Also i'm disabling the previous dates based on the current date. So i have this onClick method in my app : @Override public void onClick(View v) { …
MetaldroiD
  • 436
  • 2
  • 5
  • 17
0
votes
2 answers

correct way of getting selected date from datepickdialog which extends fragment

I am following the android tutorials on DatePickerDialog. I am able to display the datepickerdialog and set the selected date. The way I a msetting the selected date, is by creating a static instance of the EditTextview and accessing it from the…
meWantToLearn
  • 1,691
  • 2
  • 25
  • 45
0
votes
1 answer

How should i store and compare date time in android?

I am taking date from datepicker and time from timepicker. I create a date object out of it and store it as milliseconds in db. I am using sqlite database. I want to retrieve records for a particular date from db. If I compare field stored as…
Sadanand Upase
  • 132
  • 1
  • 15
0
votes
1 answer

Looking for something like DatePickerDialog but with a recurrence function

I'm new to Android development, and I am trying to build an app that has a task list with items that recur at a user specified frequency. I would like the user to select the first due date for the task, and also specify the frequency for the…
cjkennedyo
  • 33
  • 4
0
votes
2 answers

How to use showDialog() method to changed dialog's title?

I am using showDialog() to show a DatePickerDialog. I want to change or remove the dialog's title. I tried adding these code dlg = new DatePickerDialog(this, dsl, mYear, mMonth, mDay); dlg.init(mYear, mMonth, mDay, new onDateChanedListener() { …
dickfala
  • 3,246
  • 3
  • 31
  • 52
0
votes
4 answers

Android datepicker error

Why showdialog() in the following code shows "The method showDialog(int) from the type Activity is deprecated"? Button b=(Button)findViewById(R.id.button1); b.setOnClickListener(new View.OnClickListener() { @Override …
0
votes
1 answer

Run time & date checking in Background

I'm trying to develop an android application that let the user set a time range & a day and send text messages according to the time range & day set by the user ,Now I've completed everything except that I don't know if there is a way to execute…
user1928775
  • 355
  • 1
  • 5
  • 15
0
votes
1 answer

How to get timepicker / datepicker dialogFragment cancel button event

I used the android developers time picker & date picker http://developer.android.com/guide/topics/ui/controls/pickers.html and I want when the user clicks cancel button in the dialog to do some actions I tied ondismiss, onStop, onCancel But no luck…
0
votes
1 answer

Update the device time from another App not from System App

Hi I am building one Android App.which takes input from user in DatePicker and TimePicker and set the Device Time or Modile Time. This is the code I am using int nHrTime; int nMinTime; int nYear; int nMonth; …
Tejas
  • 358
  • 5
  • 23
0
votes
2 answers

How to restrict user to set date based on other date from date picker in android

I have 2 date-picker in one activity. What i want to do is when user try to select date from second date-picker then that date should greater than first date-picker's date otherwise it should show alert dialog. So below is my code. public class…
InnocentKiller
  • 5,234
  • 7
  • 36
  • 84
0
votes
4 answers

How to update text-view with multiple datepickers

I am trying to update textview when datepicker is selected with some date. But first textview tahat is startDate is not updating it always update second Text-view. I am taking two Date Picker to update two different textview. Here is my code for…
InnocentKiller
  • 5,234
  • 7
  • 36
  • 84
0
votes
1 answer

i am using the datepicker dialog to display date,but i want to change diveders in the dialog

i am using the datepicker dialog to dispaly the dateformat dialog,i want to change the divders color of datepicker and how to customize the datepickerdailog for as three blue color divders are single line.how can i customize the datepicker dialog…
naresh
  • 10,332
  • 25
  • 81
  • 124
0
votes
0 answers

Extending Android DatePicker: cannot access internal id's and resources

I'm trying to extend android's DatePicker. My first attempt involved extending the class directly. i.e. public class CustomDatePicker extends DatePicker{ ... however many of the useful methods inside DatePicker are declared private. Especially…
Ben
  • 6,567
  • 10
  • 42
  • 64
0
votes
1 answer

Android Datepicker weird behaviour

I have implemented a Date picker as follows: @Override protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: // set date picker as current date return new DatePickerDialog(this,…
Lunchbox
  • 1,538
  • 2
  • 16
  • 42