This sample covers a simplified client for registering a device on RIM's BIS-Push service.
The sourcecode was taken and modified from the BlackBerry® Push Service SDK 1.0 which can be downloaded here.
It does not feature a registration with the content provider.
As you are not allowed to publish the connection suffix to connect using the BlackBerry® Internet Service, part of the source code must be replaced, similar to your assigned push port and app id (register for them using the link above).
I advise you to use a logger service when using this code. For simplicity i have replaced all logging calls with sysouts.
Download the two files, copy them to your project, change the package name, enter your registration info and the connection suffix for the BlackBerry Internet Service.
Start the registration by calling new PushAgent().