title: How do I set a default time to my timepicker?
body: <p>I have I time picker in my code and when I press the edit text it shows up and everything looks good but I want to set a default time for my time picker so when the user opens the time picker it will be shown a specific time like &quot;3:34 am&quot; as a default time for the user, how can I do that?. Any help will be appreciated. { you can use java and kotlin}</p>
  <p><strong>My time picker</strong></p>
  <pre><code>private fun showTimePicker() {
      picker = MaterialTimePicker.Builder()
              .setTimeFormat(TimeFormat.CLOCK_12H)
              .setHour(12)
              .setMinute(0)
              .setTitleText(&quot;حدد الموعد الذي تريدة&quot;)
              .build()
  
      picker.show(supportFragmentManager, &quot;AdhanNotifacations&quot;)
      picker.addOnPositiveButtonClickListener {
          if (picker.hour &gt; 12) {
              fajrEditTxt.setHint(String.format(&quot;%02d&quot;, picker.hour - 12) + &quot;:&quot;
                      + String.format(&quot;%02d&quot;, picker.minute) + &quot; PM&quot;)
          } else {
              fajrEditTxt.setHint(String.format(&quot;%02d&quot;, picker.hour) + &quot;:&quot;
                      + String.format(&quot;%02d&quot;, picker.minute) + &quot; AM&quot;)
          }
          calender = Calendar.getInstance()
          calender[Calendar.HOUR_OF_DAY] = picker.hour
          calender[Calendar.MINUTE] = picker.minute
          calender[Calendar.SECOND] = 0
          calender[Calendar.MILLISECOND] = 0
      }
  }
  </code></pre>