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
- Download the file
- In the IDE, open the PMESplashScreen.jdw workspace
- Open the PMESplashScreen.java source file.
Tasks
- Use the CDK to create a new animation. (Start with "BlackBerrySplash1.cp" found in the directory for this assignment
- Compile the animation into a PME file.
- Complete the implementation of the PMESplashScreen class
- Create a new MediaManager object
- Retrieve the PME file to play
- Load it in a MediaPlayer
- Get the Media field from the player and add it to the screen
- 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
|