--Edit on 23 Apr 2016--
I finally used ShortcutBadger in most areas of my Device, I think that should be enough for me.
Basically, Shortcut Badger will send broadcast, intent, etc to specific launcher, such as LG Launcher, to make a badge. It may not cover all the launchers but at least it works for the most recent smart phones.
--Edit--
What I am seeing on LG G2 (4.4), there is a number of some of the Apps, e.g. Line, which showing unread count.
This is the application badge I mean and I want to find a way to work that out.
This number will also be notified by the launcher itself, when the app in put inside a folder, the folder will also show the badge.
I think there should have ways to make it work, as I found several apps having badges.
--Original--
I did a search before and I found that there is a way to make application badge on Samsung and Sony, but what I want is to support other vendor, such as LG and HTC.
Is there an universal way to make an application badge?
Thanks for your help!
Unfortunately, Android does not allow changing of the application icon because it's sealed in the APK once the program is compiled. There is no way to programmatically change it to a 'drawable'.
You may achieve your goal by using a widget instead of an icon. Widgets are highly customisable and can do what you want.
Original reference is here
You can also go with Badges library