Questions tagged [timepickerdialog]

55 questions
1
vote
0 answers

Getting wrong time using TimePicker in TimePickerFragment

I have integrated TimePickerFragment with the help of DialogFragment & TimePickerDialog.OnTimeSetListener. When I click on TextView it calls/opens this TimePickerFragment. Success Cases : 1] When I scroll anytime e.g 11:19 & press OK (TimePicker)…
0
votes
3 answers

TimePickerDialog displaying time in 12 hour format

I followed a short YouTube tutorial about TimePickerDialog. Since the video is short, it does not show how to display selected time in a 12-hour format. I want to know how to display it to 12-hour format with PM and AM at the side of the selected…
HeroreH29
  • 79
  • 8
0
votes
1 answer

TimePickerDialog Constructor Issues

if (v == btnEndTimePicker) { final Calendar c = Calendar.getInstance() ; mHour = c.get(Calendar.HOUR_OF_DAY); mMinutes = c.get(Calendar.MINUTE); TimePickerDialog timePickerDialog = new…
0
votes
1 answer

Time Picker is not working and getting crashed

I am trying to open Time Picker Dialog in Edit Text. though dialog open successfully but when i click ok to set time it throws Exception and getting crash. Error is as follows: 2020-10-06 10:16:28.972 1821-3134/? E/InputReader: isBtnTouch is true…
0
votes
1 answer

How to disable TimePickerDialog if DatePickerDialog is cancelled?

I am currently making a to-do-list app. I have a reminder function wherein if a user clicks it, then the datepickerdialog and timepickerdialog are shown. However, if the user presses 'cancel' on the datepickerdialog, then I don't want to show the…
0
votes
1 answer

Android ClassCastException while implementing onTimeSet method of TimePickerDialog.OnTimeSetListener interface in another fragment

I'm trying to implement TimePickerDialog.OnTimeSetListener in a fragment but encountering ClassCastException while doing so. Here's the code of TimePickerFragment class: public class TimePickerFragment extends DialogFragment { @NonNull …
0
votes
1 answer

TimePickerDialog in Android and add to database

im trying to add time and date from androids TimePickerDialog and DatePickerDialog into my SQLite database. However, when I try this, it doesnt work. No data appears in the database. I'm thinking that the dialogs are showing simultaneously as the…
ajizi
  • 1
0
votes
1 answer

Change TimePickerDialog to show time of specific country

I have a "TimePickerDialog", i want open that time picker with the current time of a specific country. Please share your suggestions.
Addy
  • 75
  • 2
  • 10
0
votes
2 answers

I need to put a DialogFragment inside a Fragment

it's me again. I'm doing a school project and I got some help with my app in Android. I need to put a TimePickerDialog inside a Fragment, at this fragment I have a TextView, I want to put the hour selected here. But I can't find a way to do it. When…
0
votes
1 answer

Android TimePickerDialog and DateTimePicker info is too small

My TimePickerDialog (Date too) is showing the time in very small format... Dialog Too Small I tried to create a custom theme, but it doesn't work either as I don't know what property to set.