O'Reilly logo

BlackBerry Hacks by Dave Mabe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #90. Create a Simple Push Application

You don't have to be able to write J2ME code to create a useful BlackBerry application. The BlackBerry Browser along with MDS allows you to push data to devices.

As ubiquitous as Java is now, not every programmer is in love with the language. But since the BlackBerry is a J2ME-based device, if you want to create a corporate based application, you have to use Java, right? Actually, no. RIM provides excellent hooks into the BlackBerry Browser so that when used in conjunction with a BES, you can create much of the same functionality of a full-blown J2ME application in any language that can use HTTP. You can create applications that push web content to certain devices so that it is there without the user having to pull the content by visiting the page in the BlackBerry Browser. The content that is pushed is cached on the device, making it available whether the user is in a wireless coverage area or not. The Mobile Data Service provides flexibility in how you notify the user that new content has been pushed to the device.

This hack will show you how to create a simple push application to give you a jumpstart in the world of MDS Push. You can even test this using the BlackBerry Simulator [Hack #93] .

Tip

For this to be a viable solution, your target audience must have devices homed on your BES infrastructure.

Enable the MDS Push Feature

By default, the Mobile Data Server is not enabled for push applications. You'll need to enable it and restart the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required