2
に表示されない:通知は、私は私のアプリでは、次の通知を作成していウォッチ
int notificationId = 001;
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.mipmap.icon)
.setContentTitle(StationUtils.getStationModeString("My Notification")
.setContentText("Good Notification");
NotificationManager mNotifyMgr =
(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
mNotifyMgr.notify(notificationId, notificationBuilder.build());
NotificationManagerCompat notificationManager =
NotificationManagerCompat.from(MainActivity.this);
notificationManager.notify(notificationId, notificationBuilder.build());
それは私の携帯電話に表示されますが、それは私の携帯電話に接続されている私の時計に表示されません。 Android Wearに必要なコードに何か不足がありますか?それはリリース署名付きビルドでなければならないのですか?設定を確認したところ、時計は通知にアクセスできます。
おかげ