简体   繁体   中英

How to show Notification Count on My App Icon on Home Screen in Android

The question is that Android places new alerts in the system wide notification bar while the iPhone places a notification directly over the specific app icon.

So what i have to do is that, i have to show my app icon with notification count received from C2dm receiver same as it is shown in iPhone with red oval showing the count.

i have referred this == Link 1 and this link == link 2 to do it but no success has yet received.

please provide some guideline to do it.

Thanks.

Though it might be possible to do such a thing it is absolutely not recommended to try and change the app's icon. This behaviour originates from iOS and is not used on Android at all.

You can create a widget that shows the unread count and takes the user to your app if the widget is clicked though. The Google Reader Android app offers a good example for that:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM