Using Sony Ericsson’s Project Capuchin Platform Services API in Flash Lite

The Project Capuchin Platform Services API library, which is referenced in this chapter, can be found at the Sony Ericsson Developers website at There you’ll also find demos of other mobile applications and tutorials and another cool community of developers.

Project Capuchin Platform Services Overview

“Project Capuchin is a bridging technology between Java ME and Flash Lite making it possible to take advantage of Flash’s strengths in fast UI deployment and well established designer tools, meanwhile Java’s strengths are in services, security and a well developed distribution infrastructure. Project Capuchin makes it possible to create Java applications where some or all UI components are defined in Flash Lite and where all services can be accessed through Java.”

Sony Ericsson Developers Web site

Project Capuchin effectively provides another way for you to extend the Flash Lite player for Sony Ericsson supported devices. While some of the APIs have functionality that is similar to that of the APIs available for supported Nokia devices, there are fundamental differences in the way are used and implemented, as you will learn in this chapter.

To use them requires running several extensions.mxp files through the Adobe Extension Manager. Components and relevant API classes are then integrated into Flash CS4 and can be referenced in AS. The set of APIs is available from the service MXP section of the Sony Ericsson developer website.

Project Capuchin API Services

At the time of writing, there is a total of 11 core Project Capuchin Service APIs open for Flash Lite developers to integrate into their projects. Here’s a list and brief description of the functionality you can obtain with each:

  • Accelerometer—Detect and respond to device orientation

  • Bluetooth—Send and receive data through device connections

  • Calendar—Create and save calendar dates

  • Contacts—Access and control of a device’s address book

  • File—Access and manage files on a device’s file system

  • I18n—Format data, based on locale

  • Location—Access to the GPS functionality of a device

  • Messaging—Send and receive SMS and MMS messages

  • Multimedia—Play and record audio files

  • Persistency—Save and retrieve application data

  • Radio—Control the radio on a device

In this chapter you’ll see an overview of each service and take an in-depth look at the API services for Accelerometer, Bluetooth, Calendar, Contacts, Internationalization, Messaging, Persistency, and Radio, allowing you to explore the excellent resource of Sony Ericsson.

How to Use the API methods

In order to use these services in your Flash Lite application for Sony Ericsson devices, you will need to install a few extensions into Flash CS4 using the Adobe Extension Manager:

1. Download the Core Project Capuchin MXP Service from the Sony Ericsson developer website at

2. From the same site, you should be able to download each of the previously mentioned MXP Service APIs. You will need to install each of these individually using the Adobe Extension Manager.

WARNING: To use any of the Service APIs, you must also install the Core Project Capuchin MXP file.

Once they are installed, you should be able to see each of the service components in the Components panel (see Figure 12-1).

Figure 12-1

This article is excerpted from chapter 12 "Using Sony Ericsson’s Project Capuchin Platform Services API" of the book "Professional Flash Lite Mobile Development" by J. G. Anderson (ISBN: 978-0-470-54748-9, Wrox, 2010, Copyright Wiley Publishing Inc.)



Leave a Reply

Your email address will not be published. Required fields are marked *