title: 12 hour format timepicker android
body: <p>I have a timepicker which is working fine. But it is in 24 hour format. I want it to be in 12 hour format. I can't find a possible solution. My current code snippet is:</p>
  
  <pre><code>Calendar mcurrentTime = Calendar.getInstance();
              final int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);
              int minute = mcurrentTime.get(Calendar.MINUTE);
              TimePickerDialog mTimePicker;
              mTimePicker = new TimePickerDialog(AddJob.this, new TimePickerDialog.OnTimeSetListener() {
                  @Override
                  public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {
                      ////
                  }
              }, hour, minute, true);
              mTimePicker.setTitle("Select Time");
              mTimePicker.show();
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>Edit:
  I am able to check the meridian after the date selection. But I want the user to select the meridian.</p>
  
  <p><strong>Update:</strong> How can an android question be duplicate of a javascript question? Someone left a negative vote on that..!</p>