I am trying to get the hour and minute value from a TimePicker View. When I use the code below I get the correct value, but if the minute value has a zero, for example the time 3:04, the below code will produce 3:4 instead of 3:04.
String time = viewTime.getCurrentHour()+":"+ viewTime.getCurrentMinute();