if (!DateFormat.is24HourFormat(this.context))
{
sB.append(DateFormat.format("MMM dd h:mm a", callingDate));
}
else {
sB.append(DateFormat.format("MMM dd H:mm", callingDate));
}
In first condition it is showing expected result (Jan 29 9:27) ,but in second condition it is showing (Jan 29 H:27) result ,why it is showing capital H instead of hour in only Samsung S2 device.
I have tested in other samsung device like s3, s4 ,s5 it is showing expected result , please guide me. Thanks