Sony Ericsson’s Project Capuchin is the base for great looking applications where the UI presentation is designed in Flash Lite™ while the data logic is provided by Java code. Data transmission is enabled both ways, from Java™ ME to Flash Lite and from Flash Lite to Java ME.
Make Flash applications much more capable by using Java code for logic and API access to the phoneProject Capuchin assists developers in three ways:
- Enrich Java applications by providing a more sophisticated user interface in Flash
- Package a pure Flash application as jad/jar, enabling it to be uploaded and sold as an application on PlayNow. The SWF2JAR tool makes this really simple.
Project Capuchin enables faster UI development and easier collaboration between graphical designers and code developers.
Once all interfaces between the presentation and service layers have been defined, UI designers can develop and test the presentation layer in the Flash environment independent of the Java development and testing of the service layer.
Project Capuchin was introduced in 2008 with Sony Ericsson Java Platform JP-8.4. Sony Ericsson’s phones based on Symbian and Windows Mobile also support Project Capuchin.
Project Capuchin Model
The Project Capuchin API defines several different classes that can be used for developing Java MIDlets, for example, classes to communicate directly with the native Flash player in the phone, classes to play Flash content in a Java Canvas object, and classes for data transfer.
The Flash file (.swf) is included in the MIDlet jar and is started from the Java MIDlet via a call to the Project Capuchin API which invokes the Flash content.
Data transfer interfaces and corresponding classes and function calls should be defined before starting development of the actual Flash and Java applications.
There are two types of data transmission methods:
- Data requests where the MIDlet handles a request of data from the Flash application, and returns data asynchronously. To handle the request, the MIDlet may use any of the JSRs available on the Java Platform in the phone.
- Flash content receives events triggered by the MIDlet.
We recommend that you start off by taking a look at the following resources:
Project Capuchin Kit
This is the core Project Capuchin MXP service. It provides the bridge between Flash Lite™ and the Java™ ME platform. It is required by all the other service MXPs. In addition, the Project Capuchin Kit extends Adobe® Flash CS3 and CS4 to support publishing your Flash content as a Project Capuchin application.
New in Project Capuchin kit v4.2:
- Displays error message when there is no installed component in the library
- Includes the 4.1 fix (11 September 2009) for the bug: At line 489 of file “Create Capuchin Application”: The function deleteSelection() is currently unavailable.
- Getting Started with Project Capuchin for Flash Lite Developers. This tutorial shows Flash Lite developers how to create a simple Project Capuchin application based on Contacts and using the Contacts MXP Service Package.
- Getting started with Project Capuchin for Flash Lite and Java developers. This Project Capuchin tutorial outlines how the Project Capuchin API can be used as a bridge between Java™ ME Platform and Adobe® Flash Lite™. This tutorial contains four example applications with implementation instructions, screenshots and code. You’ll also find an architecture overview, FAQ section and appendix presenting how to set up a Java ME environment for Project Capuchin using Project Capuchin APIs.
- Come up with the concept for a new Platform Service
- Use the Service API Generator plug-in to create a JXML file for the Platform Service.
- Create a zip file with the Java stubs necessary for Java developers.
- Generate the MXP component using the pre-verified and compiled Java classes implemented by Java ME developers.
Quadrapop is a falling icon based puzzle game. It is written using Flash and Project Capuchin technology.
Anyone with some basic Flash experience can create themes for Quadrapop to extensively change the look of the game.
- Quadrapop Mobile Game – Basic Theme Creation Tutorial. The basic tutorial shows you how to create new themes for Quadrapop. It is also a good introduction to Project Capuchin in general.
- Quadrapop Mobile Game – Advanced Theme Creation Tutorial. The Advanced tutorial shows you how to further customize your themes.
- Resources for the Quadrapop Theme Creation tutorials.