Below is some source code to help you get started. Actually, both applications are fairly basic. These two applications were designed for the BlackBerry Playbook. But feel free to do what you want with them.
App World Link: https://appworld.blackberry.com/webstore/content/60555
App World Link: https://appworld.blackberry.com/webstore/content/60776