BlackBerry
Skip Top Navigation
Developers Partners
North America [change region] Products Solutions Purchasing Support
Developers


Creating Media with the Content Development Kit

Exercise

Build a SVG (Scaleable Vector Graphics) page using the Plazmic Content Development Kit (CDK). Use this SVG as a 'splash' screen for an application.

Objectives

  • Discover how to use the CDK to build SVG and PME content
  • Discover how to embed PME content in a BlackBerry® application using the Media Manager API

Setup

  1. Download the file
  2. In the IDE, open the PMESplashScreen.jdw workspace
  3. Open the PMESplashScreen.java source file.

Tasks

  1. Use the CDK to create a new animation. (Start with "BlackBerrySplash1.cp" found in the directory for this assignment
  2. Compile the animation into a PME file.
  3. Complete the implementation of the PMESplashScreen class
    1. Create a new MediaManager object
    2. Retrieve the PME file to play
    3. Load it in a MediaPlayer
    4. Get the Media field from the player and add it to the screen
    5. Check that the animation is loaded and start the animation

Check Your Work

Download the completed code

Review

In this exercise, you discovered the following things:

  • to use the CDK to build SVG and PME content
  • to embed PME content in a BlackBerry application using the Media Manager API


Additional Labs

Go to the next exercise in "Creating Web Content for the BlackBerry Browser", Pushing content to the BlackBerry Browser

Back to the Developer Lab Main Menu

 
Other Resources
 
     
 Home | Products | Solutions | Purchasing | Support | Developers | Worldwide | News | About Us | Contact Us | Site Map
 Legal | Copyright © 2008 Research In Motion Limited, unless otherwise noted.