Question

I am setting the icon for my apps widget as part of getSourceRegistrationConfiguration:

String iconSource1 = ExtensionUtils.getUriString(mContext, R.drawable.watchwidgeticon);
sourceValues.put(Notification.SourceColumns.ICON_URI_1, iconSource1);

While the icon does display, it is displayed slightly above and to the left of the position it should be in, and the standard circle icon is displayed where ICON_URI_1 should be.

Any ideas as to why this would be happening, and how to correct it?

See what I mean here

The icon circled in red should be in the bottom right hand corner

Was it helpful?

Solution

What you see is actually the correct behavior when showing the standard notification widget. This widget not only shows the notification of your app, but of all apps.

What you really wanted to see is your own widget. You first have to enable it:

  1. Start Smart Connect on your phone
  2. Choose SmartWatch
  3. Settings
  4. Apps
  5. Your app
  6. Select to show as widget

Now on your SmartWatch scroll to the right and you will see your own widget with the icon in the right place.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top