Android Watch Face TextClock -


i have android watch face works 12-hour formats. confused how implement 24-hour format based on system preference of phone, using textclock or other method.

simpledateformat twelvehour = new simpledateformat("h:mm a", locale.us); string timeampmnosec = string.format("%s", twelvehour.format(cal.gettime())); canvas.drawtext(timeampmnosec, (centerx - (timexlength / 2.0f ), timeyoffset, timepaint); 

that setting bridged phone watch automatically , can on watch app calling dateformat.is24hourformat(context).


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -