the new head <dot> net: July 2006 Archives
The above link contains a post I did on my website. In that post is the source code to an early version of my BlackBerry MDS class library that I wrote. Hopefully that should be sufficient for you to get a good idea of how to do what you want to do.