Questions tagged [timepickerdialog]

55 questions
0
votes
0 answers

android: TimePickerDialog updating the total minutes

first EditText show current device time when click on button it show TimePickerDialog and i set the new time . Can we add this new hour and minute to previous .for example current device time is 12:00 and using TimePickerDialog update 1:20 then…
Atif Amin
  • 490
  • 2
  • 6
  • 17
0
votes
1 answer

TimePickerDialog doesn't show properly in Android 6

i'm using DatePickerDialog to select time on my app. When I run my app on a device with Android 5 as OS the dialog shows properly, meanwhile if i run my app on a device with Android 6 this is what the dialog looks like: Could someone help me?
0
votes
1 answer

Display timerpickerdialog within a fragment using Xamarin Android

I have followed the xamarin Timepicker tutorial link to create a Timepickerdialog within an Activity. It works great. I need to to do the same in a fragment but have failed to make it work. Can someone please show me how to do it using a fragment?…
Reagan Gallant
  • 863
  • 8
  • 20
0
votes
1 answer

My app gives NullPointerException

I'm writing a To Do app, i want to display a DatePickerDialog and TimePickerDialog on an Add/Edit dialog i made, when i run the app, it stops and give the following log: P.S.: the line giving that exception is: txtDialogDate.setOnClickListener(new…
0
votes
1 answer

how to set text of an EditText view in multiple used fragments?

i am creating an app that has a tabbed interface using TabHost and fragments, and the user needs to select the time using a TimePickerDialog and the selected time is populated into an EditText view, so i moved the time picker to a fragment so i can…
zola
  • 5,737
  • 8
  • 33
  • 48
0
votes
2 answers

How to show twice TimePickerDialog?

I am using compile 'com.wdullaer:materialdatetimepicker:2.3.0' library for Open and Close Hour (AM & PM). I would like to show TimePickerDialog again for PM after user chooses AM. And then, I would like to show AM+PM data on TextView. Here is One…
Pyae Phyo
  • 127
  • 1
  • 1
  • 9
0
votes
1 answer

Timepicker with DialogFragment xamarin android

I am opening timepicker in dialogfragment in my fragment class. var dialog = new TimePickerDialogFragment(_activity, DateTime.Now, new OnTimeSetListener()); dialog.Cancelable = false; dialog.Show(_fg,…
0
votes
1 answer

TimePickerDialogFragment: "Cannot resolve method .add(fragment, string)

To start, and via exhaustive searching I have found that most people have this error due to improper imports of the Fragment class instead of using the support library. I on the other hand am following a tutorial located here. My code is essentially…
Stembolt
  • 37
  • 4
0
votes
1 answer

TimePickerDialog to set format according to the device's time system

I'm developing a medication reminder android app. I have a problem on how to manipulate the time picker dialog so it will show the time depending on the device's time system. Si if the phone is in 12-hour format the time picker dialog should have…
0
votes
1 answer

How can I turn off my alarm with a switch

i have a switch which triggers a TimePickerDialog to set an alarm. I want now that the alarm turns off when it is switched off. Also i want to set the alarm again when I switch it to on. public class MainAddMedActivity extends AppCompatActivity { …
1 2 3
4