On widgets, yes, since it's my code setting the color.
The unread count overlay over the app's launcher icon is rendered by the device's system code.
It does not change, and its styling is defined by the device / system code as well.
Sr. Member·#22
Yes kostya, it us also there in one mail client name more than mail. It is feature rich but poor in performance, thanks
Sent from my GT-N7000
Hero Member·#23
@paras - How about using "starred" indicators for as follow-up markers? There is even a setting for the smart folder to show starred messages from all accounts.
Sr. Member·#24
Kostya, I am doing exactly the same now. I am using combination of star and sharing with task at present. How ever, star, I use for other purpose also, today's mail, some mail just for references, and some mail to be worked on later. As a result, my smart box is full or cluttered. My suggestion was to make this little easier,
@pyler - wow, fantastic! Have not seen code for HTC and LG anywhere else.
Thanks, I'll get busy with "copy paste development" now 🙂
PS - the most intriguing part there is support of stock Android launcher
Sr. Member·#27
let see if code for Android launcher2 (JB) will work with launcher3 (KitKat)... if it works, you can support launchers like Trebuchet or Google Now Launcher 🙂
Hero Member·#28
re: stock launcher - depends on permissions. I'm not crazy about adding "write system settings".
re: LG - I don't happen to own one, does anyone know what their launcher's package id is?
Hero Member·#29
Ok, this is what I found out:
- HTC code works, but results in an ugly flash of the entire home screen, every time the counter is updated
- Stock launcher code does not work with Google Experience Launcher (Kit Kat)
Works on Android 4.1 (and presumably others below 4.4)
Requires permissions that show as "read Home settings and shortcuts", "write Home settings and shortcuts"
Given that Google Play just updated, and requires re-confirmation of permissions, even for already installed apps, I'm somewhat nervous about this.
- LG code - identical to Samsung TouchWiz code, presumably works (no device to test with). I'm keeping this one.
Sr. Member·#30
Try create test version. Users with LG, HTC phones will test it for you.
You can get maybe better and universal code by reverse engineering Facebook app 😀 It supports badges for some launchers.
Hero Member·· edited#31
I am seeing flash on my HTC One (Max) when using code from that GitHub repo. That's enough of a reason to not use it.
For stock launcher, it works, but I don't like the new permissions.
Facebook? Maybe you could call Mr. Zukerberg for me and ask him to share the code? 🙂
Many people talk about uninstalling Facebook because of too many permissions, but I guess very few do (esp. when it's baked into the ROM).
Don't think I'm in the same boat with my app.
In the end, here is what we have now:
- App's own wigdets - Apex Launcher - Nova Launcher - Samsung devices - LG devices - Sony devices
Personally, I think that's pretty good coverage.
Sr. Member·#32
Yes, definitely.
p.s: Please inform library developer about HTC's issue...
Hero Member·· edited#33
The developer there (on GitHub) isn't the one whose code renders those icons.
He just discovered / reverse engineered whatever is built into the firmware on HTC, Sony, etc.
Therefore, I very much doubt he'll be able to fix how HTC's launcher responds to setting the count.
Sr. Member·#34
Btw, is supportNotifyCount true or false after "Cursor cursor = contentResolver.query(mUri, new String[]{"notifyCount"}, "title=?", new String[]{appName}, null);"?
Hero Member·#35
@pyler -- On my HTC, the counter shows either way, by using a simple value, or by building my own bitmap.
The issue is that the whole home screen flashes in a very noticeable and unpleasant way.