私は、ウェアラブル SDK に関する情報と、それが現在および将来的にできることを読んでいます。
私の質問は、ユーザーが時計の何かを押して、スマートフォン上の何かをアプリに警告できるか、またはユーザーが時計に向かって話すか、アプリから通知を受け取ってスマートフォン アプリとやり取りする必要があるかということです。
ありがとう
「アクション」ができるようになるので、そうです。たとえば、Gmail アプリのアクションの 1 つは、「返信」、「全員に返信」など、携帯電話にポップアップ表示される機能です。
Android Wear 開発者の Web サイトによると、次のコード スニペットはハンドヘルド デバイスでインテントを起動します。 // マップを表示するアクションのインテントを作成します。Uri geoUri = Uri.parse("geo:0,0?q=" + Uri.encode(location)); mapIntent.setData(geoUri); PendingIntent mapPendingIntent = PendingIntent.getActivity(this, 0, mapIntent, 0);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_event) .setContentTitle(eventTitle) .setContentText(eventLocation) .setContentIntent(viewPendingIntent) .addAction(R.drawable.ic_map, getString(R.string) .map)、mapPendingIntent);
詳細については、http: //developer.android.com/wear/notifications/creating.htmlを参照してください。「アクション ボタンの追加」セクションを参照してください。