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 Fragment Crashing using TabsAdapter and ActionBarSherlock

I'm using a tabs adapter with Fragments and ActionBarSherlock. I want to use a datepicker dialog in one of my fragments, called from an onClick event on one of the buttons. The app is crashing when I click on either of the buttons to call up the…
0
votes
1 answer

Disable the decrementing button in the datepicker

I want to develop a reservation application in Android. For the date field, I'm using the datePickerDialog. However, I want to disable the decrementing button when I reach the current date so the user can't make a reservation in the past. Do you…
Ðina YŏŜri
  • 55
  • 2
  • 10
0
votes
1 answer

Android time and date picker in one (iOS equivalent)

I am building an HTML5 coded app that will be wrapped for both android and iPhone. I have a button that should evoke the date/time picker. On iOS this is easy as the picker already exists in one Android has date and time picker in two different…
0
votes
1 answer

Date picker plugin is not working on cordova 2.2.0?

I am creating a android app using cordova 2.2.0.Now i am geting error on datepicker plugin. I installed date picker plugin refer this link https://github.com/phonegap/phonegap-plugins/tree/master/Android/DatePicker. Now i get Uncaught TypeError:…
0
votes
1 answer

Access FragmentActivity within Class extends by DialogFragment

I have a class which extends by DialogFragment. I want to call a method in a class which extends by FragmentActivity within this DialogFragment. In my FragmentActivity, i do as below to call DialogFragment. DialogFragment dialogFragment = new…
Bishan
  • 15,211
  • 52
  • 164
  • 258
0
votes
1 answer

Using the date from DatePicker in the url for sunrise/sunset webservice

Okayyyy, so I'm stuck and could do with some help :) In my code at the moment today's date is being read into the webservice url using the following snippet of code: Calendar c = Calendar.getInstance(); System.out.println("Current time => " +…
Athoul
  • 61
  • 2
  • 11
0
votes
1 answer

Default DatePicker dialog layout config issue

In landscape mode datepicker dialog is looking non-uniform "+" button size and "-" button size are differnt.. my xml layout is like this
Balwinder SIngh
  • 1,831
  • 2
  • 24
  • 28
0
votes
1 answer

How to create two spinner for Date Picker in one class in android?

I have created one class in which i want to set two different spinner for date picker. I want this because i want to set start event date and end event date, so how can i set two different spinner with date picker in one class??? thanks in advance.
user2092132
  • 137
  • 2
  • 3
  • 13
0
votes
1 answer

Date Picker is getting force close on SherlockFragmentActivity

Here is my code, it's not showing any error. When i try to run it's getting closed, ClassCastException. NOTE:THE SAME CODE IS WORKING WHEN EXTENDING TO SherlockFragment public class EventsFeatured extends SherlockFragmentActivity { TextView…
0
votes
1 answer

choose a date and show in the same button, date picker android

i have a form which user must enter date of birth, there is a button to choose a date, when user click set, the button will show the result of the user, but i only one the date not the time, private SQLiteDatabase database; private DBHelper…
new
  • 77
  • 2
  • 16
0
votes
1 answer

call custom Time DialogPreference from custom DatePicker DialogPreference

I need to implement both custom TimePicker and DatePicker DialogPreferences in my project. First DatePicker Dialog should be called and then TimePicker. I implemented them both to my project with the help of this and this tutorials. I think that I…
0
votes
2 answers

how to set date for from and to with validation

I am new to android, can any one post the code for the below scenario. i have to set date for "from" and "to" with validation, that is "to" date should be greater than "from" and "from" date should be lesser than "to" date. is that possiable. thanks…
saran
  • 461
  • 1
  • 6
  • 20
0
votes
2 answers

How to show date picker in popup window that popped from an imagebutton

I am building application in which I need this complex mechanism. Please help me out. When I click on the imagebutton it should show a popup window. In this popup window I've kept two editTexts. I've set both editTexts to OnclickListener. Now when i…
0
votes
0 answers

Prob with a time picker and date picker in android

I have a CheckBox in my app which sets the visibility of the TimePicker and the DatePicker! The code looks something like this public void onCheckBClicked(View v) { boolean checked = ((CheckBox) v).isChecked(); if(checked==false) { …
0
votes
1 answer

how to change datepicker holotheme day view in android

How can I change this days view to normal? I mean to display days not in a month view calendar, but in a form like months and years?
apony
  • 75
  • 8