Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://developer.android.com/reference/android/app/TimePickerDialog.html" rel="nofollow">TimePickerDialog</a> contains a <a href="http://developer.android.com/reference/android/widget/TimePicker.html" rel="nofollow">TimePicker</a> widget which in turn implements code for getting the current time. The sample code is referencing the <a href="http://developer.android.com/reference/android/widget/TimePicker.html" rel="nofollow">TimePicker</a> in <a href="http://developer.android.com/reference/android/app/TimePickerDialog.html" rel="nofollow">TimePickerDialog</a> directly by assuming that <a href="http://developer.android.com/reference/android/app/TimePickerDialog.html" rel="nofollow">TimePickerDialog</a> will always contain a <a href="http://developer.android.com/reference/android/widget/TimePicker.html" rel="nofollow">TimePicker</a> with the id: <code>timePicker</code>. </p> <p>However, you don't need to <em>magically</em> know the id of the <a href="http://developer.android.com/reference/android/widget/TimePicker.html" rel="nofollow">TimePicker</a>. You can implement the <a href="http://developer.android.com/reference/android/widget/TimePicker.OnTimeChangedListener.html" rel="nofollow">TimePicker.OnTimeChangedListener</a> callback interface which has access to the embedded <a href="http://developer.android.com/reference/android/widget/TimePicker.html" rel="nofollow">TimePicker</a> via the <code>onTimeChanged (TimePicker view, int hourOfDay, int minute)</code> method as illustrated in this <a href="http://developer.android.com/resources/tutorials/views/hello-timepicker.html" rel="nofollow">Time Picker tutorial</a> instead.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload