开发者

Alter blackberry application title to show unread message count

Some blackberry applications are able to set their title depending on how many messages are unread. Examples are the Gmail and ubertwitter app. Gmail will set the title to "GMail (20)" to indicate there are 20 unread message. This shows up when hovering over the icon on the main blackberry screen, or when viewing the running apps selector. Ubertwitter does the same.

I开发者_如何学运维've looked through the blackberry API and done quite a bit of googling, but I don't see any likely candidate for setting this string. The ApplicationDescriptor would be a good candidate type for this setting, but all the properties are read-only. There are no setters available, save for 'PowerOnBehavior'


You should be able to use net.rim.blackberry.api.homescreen API.

In particular (Untested)

HomeScreen.SetName("Inbox(2)");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜