danwallach / calwatch Goto Github PK
View Code? Open in Web Editor NEWAndroid WearOS watch face app, displays your day's events on your wrist
Home Page: https://www.cs.rice.edu/~dwallach/calwatch/
License: GNU General Public License v3.0
Android WearOS watch face app, displays your day's events on your wrist
Home Page: https://www.cs.rice.edu/~dwallach/calwatch/
License: GNU General Public License v3.0
I have events with people from around the world, so I use either a digital watchface, or a 24-hour analog face. The only app that provides this, along with calendar functionality, is Sectograph, which I have been using for the last two years or so. Would it be possible to add a 24-hour watchface?
See example code: https://developer.android.com/training/wearables/watch-faces/drawing
private const val MSG_UPDATE_TIME = 0
class Service : CanvasWatchFaceService() {
...
inner class Engine : CanvasWatchFaceService.Engine() {
private lateinit var calendar: Calendar
...
// receiver to update the time zone
private val timeZoneReceiver: BroadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
calendar.timeZone = TimeZone.getDefault()
invalidate()
}
}
// service methods (see other sections)
...
}
...
}
private fun registerReceiver() {
if (registeredTimeZoneReceiver) return
registeredTimeZoneReceiver = true
IntentFilter(Intent.ACTION_TIMEZONE_CHANGED).also { filter ->
this@AnalogWatchFaceService.registerReceiver(timeZoneReceiver, filter)
}
}
private fun unregisterReceiver() {
if (!registeredTimeZoneReceiver) return
registeredTimeZoneReceiver = false
this@AnalogWatchFaceService.unregisterReceiver(timeZoneReceiver)
}
Possibly handy links:
A few months ago CalWatch stopped working and doesn't even show up as selectable. Play Store says it is incompatible with all my devices. My phone has Nougat and my watch is Android Wear 1.0 (Original Moto 360)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.