Profile

Cover photo
Sterling Udell
Works at Udell Enterprises, Inc.
Attended University of Maine
259 followers|844,571 views
AboutPostsPhotosYouTubeReviews

Stream

Sterling Udell

Resources  - 
 
Watch Face Dev Tip: Dynamic Styles

Every time you call setWatchFaceStyle() you need to give it a complete WatchFaceStyle specification. It’s not additive; any elements left out of your WatchFaceStyle are undefined, with unpredictable results.

For example, let’s say I set up my watch face style in my Engine’s onCreate() method as such:

setWatchFaceStyle(new WatchFaceStyle.Builder(MyService.this)
    .setCardPeekMode(WatchFaceStyle.PEEK_MODE_SHORT)
    .setShowSystemUiTime(true)
    .setStatusBarGravity(Gravity.RIGHT | Gravity.TOP)
    .build());

Notice I didn’t give it a hotwordIndicatorGravity value; that’s because I want that to be dynamic. So in my onPeekCardPositionUpdate() method, I have the following code:

int hotwordGravity;
if (rect.height() == 0) {
      hotwordGravity = Gravity.RIGHT | Gravity.TOP;
} else {
      hotwordGravity = Gravity.BOTTOM;
}
setWatchFaceStyle(new WatchFaceStyle.Builder(MyService.this)
     .setHotwordIndicatorGravity(hotwordGravity)
     .build());

This will not reliably work as expected: the later call to setWatchFaceStyle() will completely replace the style supplied to the earlier one, and it's not a complete style.

One way to make this work is to keep a WatchFaceStyle.Builder around (say, in a field of your Engine class), then modify and reuse it when you need to make changes. There are undoubtedly other solutions that would work too.

In hindsight, this makes sense: the method’s named setWatchFaceStyle(), not modifyWatchFaceStyle(), implying that it will replace whatever style was set previously. But it’s an easy trap to fall into if you’re changing the style dynamically.
5
Aladin Q's profile photoSterling Udell's profile photoIan Lake's profile photo
3 comments
 
What unpredictable results are you seeing? Every attribute for WatchFaceStyle has a default (as seen in the Javadoc) which should be used if you don't specify something.
Add a comment...
 
Found my new watch face!
 
Latest creation, impress the kids! Requires WatchMaker from Google Play. The grill tiles in the middle display watch and phone battery status, all elements and colors are 100% accurate to official LEGO parts.
All Projects; Round Smartwatch Face. Brick Time. Round Smartwatch Face · Analog Odyssey V2. Round Smartwatch Face · Analog Odyssey. Round Smartwatch Face · Black Hole. Round Smartwatch Face · Solar Flare. Round Smartwatch Face · Modern 360 Dial - Steel. Round Smartwatch Face ...
1 comment on original post
3
Add a comment...
 
Version 5.1 of Wearable Widgets is now rolling out through Google Play! 

This update should fix the various widget-sizing issues that a few people have been experiencing with 5.0. If not, please email wearable@udellenterprises.com so we can track down what's going on.

I've also rolled in a few more options for Android Wear watch faces, mostly in response to user requests. Some of these will save a bit of battery too!

As always with Google Play updates, it's hard to predict exactly when it will be available to everyone, but rest assured that it is on its way. If you don't yet have WW installed, get it from here: https://play.google.com/store/apps/details?id=com.wearablewidgets
3
Add a comment...

Sterling Udell

Shared publicly  - 
 
Been there, done that.
 
As I'm laying in bed last night, about to fall asleep, I suddenly realize that the code I pushed to production may have a bug in it, and I'm all like...

#pixelpushing
31 comments on original post
1
Add a comment...

Sterling Udell

Shared publicly  - 
 
Whoa.
 
OMG OMG OMG OMG
+Lisa Bauer!
A concept featuring a range of Doctors, companions and monsters by fan Andrew Clark will be available to buy later this year
18 comments on original post
1
Add a comment...

Sterling Udell

Discussion  - 
 
Does an AW watch face always require the WAKE_LOCK permission? It would appear so, both from the docs and my own experience.

I have to say, this is kind of a bummer. I was in the process of adding a watch face to one of my longstanding handheld apps, but the addition of a seemingly-arbitrary new permission - one that's potentially harmful, and which won't benefit most users - is going to piss people off. Not sure if it's worth it.
1
Ian Lake's profile photoSterling Udell's profile photoFilip Gruszczyński's profile photo
4 comments
 
Ambient updates are delivered via wallpaper commands which are basically IPC calls. We can't determine when you finish work, so we would have to resort to using timed wake locks, which would either be to short to cover all cases or wasteful. When the watch face manages the wake lock, it knows when to release it.
Add a comment...

Sterling Udell

Shared publicly  - 
 
I'm just going to leave this here.
6
John Burke's profile photo
Add a comment...
Have him in circles
259 people
GlassVuz's profile photo
don mcmahon's profile photo
mike ob's profile photo
Andrew Houlne's profile photo
Wookie Houle's profile photo
Claude Newman (AndroidB)'s profile photo
Simon Pasieka's profile photo
Michał Krygier's profile photo
JR Curley's profile photo
 
The next frontier for Wearable Widgets?

The lack of a decent screen is really the only thing that's kept WW off Pebble until now. This looks pretty low-res, but with color support, it just might be good enough.
 
Pebble inadvertently teases its first color smartwatch
Pebble has been hyping up an announcement on February 24th, but it looks like the company might have let the cat out of the bag a little early. Curious
3 comments on original post
1
John Burke's profile photols Song's profile photoSterling Udell's profile photoJoey Duran's profile photo
7 comments
 
Idk pebble looks so.... Boring to me.... I like my gadgets complex, and having options. My Gear 2 works prefect for me, and the fact that I can put Widgets on it makes it even better! I'm still waiting for the ability to tap the side to change widget for the gear 2 :p
Add a comment...

Sterling Udell
owner

Announcements  - 
 
I've just pushed version 5.1 to the beta channel. This release was motivated by fixing the various widget-sizing issues that folks experienced with 5.0, but it has a couple of other new features as well. Full changelog is at the linked page, if you're interested.

Fixing the bugs necessitated some relatively deep changes, however, so I would like to get this well beta'd before I release it generally. Please install and give it workout - thanks!
App Status. Wearable Widgets has recently emerged from public beta - which means that everything we know about in the app works, but there are undoubtedly still a few bugs. If you run across one of these, please email us, or join our Google+ Community and post about your experience there.
2
Joeri D's profile photoSterling Udell's profile photoJoey Duran's profile photo
3 comments
 
Seems to be working just fine. Apt to update my phone rom. Will let you know more when I get everything set back up 👍
Add a comment...

Sterling Udell

Shared publicly  - 
 
Well, I haven't found a golden ticket yet, but I did find an April Fool's joke (an extra dose of cat in the Experiment). Well played, +Google Developers! #io15  
Google I/O 2015 brings together developers for an immersive, two-day experience focused on exploring the next generation of technology, mobile and beyond. Join us online or in person May 28-29, 2015.
1
Add a comment...

Sterling Udell

Feedback / bugs  - 
 
Found a little bug in the 3.0 release. This is running on a Nexus 6 connected to a Moto 360, FWIW. Happy to provide additional details on request.
1
Peter Bongé's profile photoUser SMArt's profile photoSterling Udell's profile photoNicolas Pomepuy's profile photo
6 comments
 
Will be fixed in the upcoming version.
Add a comment...
 
So I'm considering bringing my world clock phone app to Wear; it seems like a natural fit for the platform. Question is, would you buy a good world clock for your wrist?
211 votes
Definitely!
14%
Maybe
26%
Not interested
38%
No, the free preloaded one's good enough
13%
Wait, you got one preloaded? I want one!
9%
2
Sterling Udell's profile photoSascha Lang's profile photoBen J. DITZEL's profile photoMatt Terk's profile photo
5 comments
 
+Ben J. DITZEL at least there is on the lg watches
Add a comment...
People
Have him in circles
259 people
GlassVuz's profile photo
don mcmahon's profile photo
mike ob's profile photo
Andrew Houlne's profile photo
Wookie Houle's profile photo
Claude Newman (AndroidB)'s profile photo
Simon Pasieka's profile photo
Michał Krygier's profile photo
JR Curley's profile photo
Education
  • University of Maine
  • Drake University
  • Cornell College
  • Horlick High School
Story
Tagline
Free range Android developer
Introduction
Currently traveling North America full time in an RV.
Work
Occupation
Writer of software, and occasionally books
Employment
  • Udell Enterprises, Inc.
    Writer of software, and occasionally books, present
  • Arian Development Ltd
  • Opus 2 Revenue Technologies
  • Dead River Company
Basic Information
Gender
Male
Stopped here for breakfast after an overnight stay driving through on I-80. Was immediately impressed by the selection of donuts, and the one I had (Devil's Food Glazed) was the tastiest donut I've had in a long, long time. And I eat more donuts than I should probably admit. Staff were helpful and friendly too. All around, a 5-star donut-shop experience.
Public - 8 months ago
reviewed 8 months ago
Great stop for RVers. Gas, diesel, propane all reasonably priced, a free dump station (with potable water fill), and even a small, inexpensive RV park out the back.
Public - a year ago
reviewed a year ago
This has to be one of the nicest settings for a commercial RV park anywhere. We usually stay in state & national parks, and usually stay well away from commercial parks, but we found this campground to be delightful. The facilities are a bit in need of upgrading, but the overall experience (and friendliness of the owners) more than made up for it. If you're coming to camp, this should be your first choice.
Appeal: Very GoodFacilities: GoodService: Excellent
Public - a year ago
reviewed a year ago
Onsite carpark will happily sell you a space they don't have. Reserved (an prepaid!) a week in long-stay parking recently, and when we arrived, there was not a space to be had. Cars parked on curbs, pavements, blocking entrances, etc. Don't do it.
Public - 4 years ago
reviewed 4 years ago
6 reviews
Map
Map
Map
Breakfast was just perfect! And the decor is out of this world.
Public - a year ago
reviewed a year ago
A first-rate breakfast in a friendly, locals diner.
Food: ExcellentDecor: Very GoodService: Very Good
Public - 2 years ago
reviewed 2 years ago