This demo is a content browser that takes advantage of the content handler registry. It allows you to view different types of content from different sources.
In the user interface, select File > Open Sample Project > CHAPIDemo.
In the device selector, right-click on a device, select Run Project OTA, and choose CHAPIDemo.
You are asked to enter the password for the keystore. Type: keystorepwd
You are asked to enter the password for the “dummyca“ key pair alias within the keystore. Type: keypwd
On the Favorite Links page, choose CHAPI Demo. Press the menu soft button and choose 1, Go.
The Text Viewer displays a Media Player URL and links to various media files.
Select Duke.png. Use the arrows to highlight the link, then select the file. Using CHAPI, the ImageViewer MIDlet runs and displays the Duke image. Select the Back soft key to return to the Text Viewer.
Install the Media Player to view media.
Select the URL http:handlers/MediaHandler.jad.
Select the Menu soft button and select item 1, Go.
The application asks, “Are you sure you want to install Media Handler?“ Select the Install soft key. For the rest of this demo, click Install if you are asked for confirmation.
The installation finishes and you return to the Text Viewer.
View different media files.
Select a URL from the list, select the Menu soft button and select item 1, Go.