title: How to pick time using MaterialDesign's MaterialTimePicker in Java (android)?
body: <p>I saw <a href="https://stackoverflow.com/questions/62882368/how-to-pick-time-using-material-design">this post</a> about picking time on positive click of the time picker from Material Design. I am struggling with doing it in Java.</p>
  <p>My current codes:</p>
  <pre><code>        final MaterialTimePicker materialTimePicker = new MaterialTimePicker.Builder()
                                                  .setTimeFormat(TimeFormat.CLOCK_24H)
                                                  .build();
      pickTime.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              materialTimePicker.show(getSupportFragmentManager(), &quot;fragment_tag&quot;);
          }
      });
  </code></pre>
  <p>I am thinking about writing something like <code> materialTimePicker.addOnPositiveButtonClickListener(new MaterialPickerOnPositiveButtonClickListener&lt;&gt;())</code>, but I am not sure how to fill the blank. My goal is to get the hour and minutes from the time picker.</p>