Sony Ericsson Capuchin APIs and Example Applications

Following immediately after the popular Project Capuchin Webinar Sony Ericsson have now published a set of Capuchin APIs, some really great reference applications and a tutorial to get you started.  Get them here.

Project Capuchin:

Is a Java ME API which makes it possible for Java to launch a Flash Lite application on enabled mobile devices using a Java host application. Flash can communicate with the rich APIs provided to Java using standard DataRequest and ExtendedEvent objects.  You can being to use the API set from Sony Ericsson and build on them as a community.

As an example the following Java function accepts DataRequest, determines the request type and then returns latitude and longitude strings.  The call to complete() calls the waiting onLoad function in the DataRequest object.

Capuchin Java

The most basic usage the Flash API in Flash looks like this where handleGetGPS is called when onLoad fires.

Flash DataRequest

When using classes there are much better ways to handle DataRequests safely particularly where classes are bound to MovieClip instances such as lists or components.  For example I tend to wrap DataRequests in a DataProvider object which handles the scoping and event broadcasts as well as DataRequests.

You can find an example of this DeviceDataProvider wrapper class in my example section, note that coment “CPU and memory efficiency” which is a compiler hack :-)

Also in the example section is a re-written version of the same class to handle networking and RSS Feeds.

  • Google
  • Digg
  • del.icio.us
  • Technorati
  • E-mail this story to a friend!
  • StumbleUpon
  • Live
  • De.lirio.us
  • LinkedIn
  • Pownce
  • Slashdot
  • TwitThis
  • Wikio IT
  • YahooMyWeb
  • Blue Dot
  • MyShare
  • NewsVine
  • Reddit
  • Socialogs
  • Webnews.de

0 Responses to “Sony Ericsson Capuchin APIs and Example Applications”


  1. No Comments

Leave a Reply