{"id":26385148,"url":"https://github.com/danwallach/xwatchface","last_synced_at":"2025-03-17T07:39:49.023Z","repository":{"id":25607100,"uuid":"29042169","full_name":"danwallach/XWatchface","owner":"danwallach","description":"Android Wear watchface, based on the Wear sample watchfaces, which listens to stopwatch \u0026 timer broadcasts","archived":false,"fork":false,"pushed_at":"2015-01-11T20:35:10.000Z","size":252,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-18T14:12:49.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danwallach.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-10T00:49:54.000Z","updated_at":"2024-04-18T14:12:49.735Z","dependencies_parsed_at":"2022-09-03T06:32:18.798Z","dependency_job_id":null,"html_url":"https://github.com/danwallach/XWatchface","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwallach%2FXWatchface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwallach%2FXWatchface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwallach%2FXWatchface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwallach%2FXWatchface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danwallach","download_url":"https://codeload.github.com/danwallach/XWatchface/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243995278,"owners_count":20380778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-17T07:39:48.433Z","updated_at":"2025-03-17T07:39:49.018Z","avatar_url":"https://github.com/danwallach.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"/**\n * XWatchface\n * Copyright (C) 2014 by Dan Wallach \u003cdwallach@cs.rice.edu\u003e\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nThis is a very simple Android Wear watchface based on the example watchface apps\ndistributed by Google.\n\nWhat's useful and interesting is that it shows you how listen to broadcasts from a\nstopwatch and timer and render them. Some things to examine:\n\nAndroidMainfest.xml: This is pretty much exactly what you'd expect to see for any\nwatchface, except for the \u003creceiver\u003e element, which says that we're interested in\nreceiving broadcast intents from stopwatches and timers.\n\nXWatchfaceService.java: This is very similar to the stock sweeping-hand watchface\ncode that you'll find in the examples that Google ships. What's new is the call to\nXDrawTimers.draw() and XWatchFaceReceiver.pingExternalStopwatches().\n\nXWatchfaceReceiver.java: When a stopwatch or timer has an update to send, this is\nwhere we're going to receive it. You probably want to just include this entire file\nwithout changing anything.\n\nXDrawTimers.java: This is a very, very basic way to add stopwatch and timer rendering\ninto your own watchface. For the stopwatch, it draws a minute hand and a second hand.\nIf the stopwatch is reset, it draws nothing. If it's in ambient mode, it just draws\nthe minute hand. For the timer, it only draws one hand that sweeps counterclockwise,\nstarting and ending at 12 o'clock. You should, of course, feel free to embellish on\nthis and do something else.\n\n\nRELATED LINKS\n\nXStopwatch \u0026 XTimer: Two apps in one APK which implement a stopwatch and an timer.\nhttps://play.google.com/store/apps/details?id=org.dwallach.xstopwatch\nhttp://www.cs.rice.edu/~dwallach/xstopwatch/\nhttps://github.com/danwallach/XStopwatch\n\nCalWatch: A full-featured Wear watchface that also renders timers and stopwatches.\nhttps://play.google.com/store/apps/details?id=org.dwallach.calwatch\nhttp://www.cs.rice.edu/~dwallach/calwatch/\nhttps://github.com/danwallach/CalWatch\n\nNote / warning: This XWatchface Android Studio project isn't set up to produce something that\nyou can just upload to the Google Play Store. For that, you also need to set up a\n\"wrapper\" mobile app.\nhttps://developer.android.com/training/wearables/apps/packaging.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwallach%2Fxwatchface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanwallach%2Fxwatchface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwallach%2Fxwatchface/lists"}