I have to show the time picker in hh:mm format on Click the edit text.So that I had used the below code.
MainActivity.java:
e6.set
Just set the text to "%02d:%02d" as follows:
e6.setText(String.format("%02d:%02d", selectedHour, selectedMinute));
Hope so this might help you