Я создал уведомление для android wear. Уведомление выходит должным образом. Я также добавил addAction для уведомления. У меня есть два вопроса:Извещение о новинке от Nokia
Я не знаю, почему я получаю три слайд-страниц (три точки в нижней части),
a. Notificaiton text b. A black background image (second slide) c. Add action button (third slide)
Я пытаюсь нажмите на уведомление, чтобы открыть новое намерение это не работает:
Вот код, я пробовал:
Intent notificationIntent = new Intent(this, Wear.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
int notificationId = 001;
Bitmap background = BitmapFactory.decodeResource(getResources(), R.drawable.backgroundwatch);
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.launchericon)
.setContentTitle("Mail ME")
.setContentText("Are you in need of help?? Click or slide to request help!")
.setLargeIcon(background)
.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(background))
.addAction(R.drawable.launchericon,"Help", contentIntent);
Я не уверен, где я ошибаюсь?
Спасибо!
в вашем вопросе вы спрашиваете о андроиде войны и Android Wear в описании, что вы говорите о;);) –
Вы пробовали метод .Show()? –