Best way to store Badge criteria?

Rules. You create events in the system, and use rules within an event stream processor. Specifically, say you have a badge “made 10 posts”. You don’t run “select count(*) from posts where user = :user” for every post. Rather, you have a simple rule that watches each post come by, and “count them”, storing the … Read more

How to add a notification badge/count to application icon on Sony Xperia devices?

After having seen Daniel Ochoa’s solution for Samsung’s launcher, which uses a BadgeProvider to handle the badges, I set out to do the same for Sony’s Xperia Home. This answer is taken directly from my blog. How I figured it out – For anyone interested I stumbled upon Sony’s AppXplore and used it to check … Read more

How to interface with the BadgeProvider on Samsung phones to add a count to the app icon?

First you’ll need to add the following permissions to your AndroidManifest.xml file. <uses-permission android:name=”com.sec.android.provider.badge.permission.READ” /> <uses-permission android:name=”com.sec.android.provider.badge.permission.WRITE” /> The column structure is as follows: (integer) _id, (text) package, (text) class, (integer) badgecount, (blob) icon, (???) extraData In order to query ALL results from the BadgeProvider do the following: // This is the content uri for … Read more