waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Using Android Wear notifications, picture is not shown with BigPictureStyle #643

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I am using the following code to generate a notification, which works well on 
Android and also shows up on my Moto 360 just fine.

 NotificationCompat.BigPictureStyle s = new NotificationCompat.BigPictureStyle();
                s.bigLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));
                s.setSummaryText(text);
                s.bigPicture(bitmap);
                b.setStyle(s);
                b.setContentIntent(pendingIntent);

What is the expected output? What do you see instead?

The notification appears on Glass, but text only - the background is black, 
with no picture.

What version of the product are you using? On what operating system?

XE22.  Notification being sent from a Nexus 5 running the official Lollipop 
release.

Original issue reported on code.google.com by dc...@scienceprousa.com on 8 Dec 2014 at 4:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also have a few related issues - when I click one of the actions on my 
notification, which advances to the next song, the notification is updated by 
my app (and updates instantly on phone) but it remains the same on Glass.  
Likewise, one of the notification buttons is for Play/Pause (the text/pending 
intent is toggled), and hitting that option does not update the notification on 
Glass as it should.  It appears that the only way to get the notification to 
update is to entirely dismiss it and then relaunch the app to get it to show 
again.

Original comment by dc...@scienceprousa.com on 8 Dec 2014 at 4:33