Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Contributor
Posts: 19
Registered: ‎02-14-2013
My Device: 9360
My Carrier: du
Accepted Solution

Push Notification (Hub icon)

Hello,

 

I am able to generate the push notification using C2DM, my notifications comes under the notifcations category. Currently the notification showing the alarm icon, I want to use my application icon instead of alarm icon on it. I can see skype is working like that. how can I use my application icon in Blackberry Hub ?? I am using below code to generate the notification

 

 

NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(

this).setSmallIcon(R.drawable.icon)

.setContentTitle("Test")

.setStyle(new NotificationCompat.BigTextStyle().bigText(msg))

.setContentText(msg);

mBuilder.setAutoCancel(true);

Retired
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10
My Carrier: Rogers

Re: Push Notification (Hub icon)

Hello,

 

Currently custom icons for alerts are not supported in the Android Runtime. This is something we are looking at supporting for future releases.

 

Thanks,

Matt

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators