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 now I had referred this post and change the single line:
this line
e6.setText(selectedHour + ":" + selectedMinute);
to
e6.setText(String.format("%02d:%02d", selectedHour, selectedMinute));