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

php - Admin SDK -- get information about the group -

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

Python Error - TypeError: input expected at most 1 arguments, got 3 -