Streaming with Project Capuchin for Adobe Flash Lite developers

Similar documents
Setting up Java environment for Project Capuchin development with Sony Ericsson phones

Project Capuchin Bridging Flash Lite and Java ME in Sony Ericsson phones

Video calls. July Keep in touch using voice and video

Releasing an Application for mobile applications in Sony Ericsson phones

White paper. April Messaging

White paper. April Security

SmartWatch. February Specification. Developer World sonymobile.com/developer

Sony Ericsson. Panel SDK for Xperia X2. EXE Panelizer Tutorial

Managing files. July Organize your files

White paper. April Connectivity

Xperia TM. Read about how Xperia TM devices manage and synchronisation in a corporate IT environment

Series 40 6th Edition SDK, Feature Pack 1 Installation Guide

Smart Wireless Headset pro Specification

Xperia TM. in Business. Product overview. Read about the enterprise policies and features supported in Xperia devices. March 2018

Xperia TM. Read about how Xperia TM devices can be administered in a corporate IT environment

Xperia TM. in Business. Product overview. Read about the enterprise policies and features supported in Xperia devices.

Sony Xperia Configurator Cloud User Instructions

Application Integrity and Security for mobile applications in Sony Ericsson phones

TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON Installation. Software Release 1.0 November 2012

Digital Signage Player Management Software

Artix Orchestration Release Notes. Version 4.0, June 2006

Artix Orchestration Installation Guide. Version 4.2, March 2007

Device Pack. Network Video Management System Standard Edition. Release Note. Software Version: 9.5a Sony Corporation

HUAWEI H30-U10. Quick Start Guide

Installing the Shrew Soft VPN Client

Microsoft Dynamics GP. Purchase Vouchers

How To... Reuse Business Objects and Override Operations of a Business Object

GUI 1.5 Release Notes

Migrating BlackBerry-enabled mailboxes from Microsoft Exchange 5.5 to Microsoft Exchange 2000

Release Notes Version 4.1 BlackBerry 7100g BlackBerry 7290 Wireless Handheld

Sony Smart headset products Developer specifications

Nimsoft Monitor. proxy Guide. v3.1 series

Device Pack. Network Video Management System Standard Edition. Release Note. Software Version: Sony Corporation

Disclaimer; No Warranty Copyright Trademarks

hp digital home networking phoneline USB network adapter hn210p quick start guide

Application Security for Java-based BlackBerry Handhelds

TIBCO BusinessConnect EBICS Protocol Installation and Configuration. Software Release 1.0 December 2011

Microsoft Dynamics GP. Inventory Kardex

How to Create a New SAPUI5 Development Component

How-To... Add Sensitive Content into an Area

Trading 6.0. Trade Model Configuration XML Reference. March 2013

Cisco TEO Adapter Guide for SAP Java

StoneGate Firewall/VPN How-To Installing and Activating StoneGate FW/VPN in VMware ESX Server

VP-UML Installation Guide

TIBCO Managed File Transfer Internet Server Transfer and File Share Clients User's Guide

HYCU SCOM Management Pack for F5 BIG-IP

BlackBerry Java Development Environment (JDE)

TIBCO ActiveMatrix BusinessWorks XA Transaction Manager Release Notes

JD Edwards EnterpriseOne 8.12 Standalone Client Installation Guide. for the Oracle Application Server

Craig Pelkie Bits & Bytes Programming, Inc.

Cisco UCS Director API Integration and Customization Guide, Release 5.4

Symantec Validation and ID Protection. VIP Credential Development Kit Release Notes. Version May 2017

Migration Tool. Migration Tool (Beta) Technical Note

Rapise Quick Start Guide Testing Qt Framework Applications with Rapise

Stonesoft User Agent. Release Notes for Version 1.1.3

TIBCO BusinessConnect Palette Release Notes

TECHILA DISTRIBUTED COMPUTING ENGINE BUNDLE GUIDE

SSL Installation Guide. Service Pack 9, July 2007

User Manual Arabic Name Romanizer Name Geolocation System

Installation Guide. ProView. For System Center operations Manager ProView Installation Guide. Dynamic Azure and System Center insights

TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft SharePoint Release Notes

TIBCO iprocess Workspace Plug-ins Installation. Software Release 11.2 September 2009

FW Update Tool. Installation Guide. Software Version 2.2

How to Install SAP Netweaver 2004s ABAP Edition on Your Local PC

Symantec Validation and ID Protection. VIP Credential Development Kit Release Notes. Version January 2017

PRESENTATION BACKGROUNDS

TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft SharePoint Installation

IoT AppZone Release Notes

TIBCO ActiveMatrix BusinessWorks Plug-in for sftp Release Notes

Integrate a Forum into a Collaboration Room

EAM Portal User's Guide

If the firmware version indicated is earlier than the "Version 1.06", please update the unit s firmware.

OPTICAL DISC ARCHIVE FILE MANAGER ODS-FM1

Orbix 3.0 for Windows Installation Guide

Startup guide. Xperia C2305. Sony Mobile Communications AB SE Lund, Sweden

How To Generate XSD Schemas from Existing MDM Repositories

RE866 Interface User Guide

Setting Up an Environment for Testing Applications in a Federated Portal Network

Nimsoft Monitor. websphere Guide. v1.5 series

Nimsoft Monitor. cluster Guide. v2.6 series

How to Change Firmware in WT1000 Terminals. A Technote by Systems Engineering

Core Services SSL Installation Guide. Service Pack 9, July 2007

Device Pack. Network Video Management System Enterprise Edition. Release Note. Software Version: Sony Corporation

Cluster Shared Volume Effective Virtual Machine Migration. Mohammed Yasser A K Dell Windows OS Engineering

Prime Service Catalog: UCS Director Integration Best Practices Importing Advanced Catalogs

TIBCO ActiveMatrix BusinessWorks Plug-in for WebSphere MQ Installation

LogiCORE IP 3GPP LTE Turbo Encoder v1.0 Bit-Accurate C Model. 3GPP LTE Turbo. [optional] UG490 (v1.0) April 25, 2008 [optional]

Stonesoft Firewall/VPN Express. Release Notes for Version 5.5.4

How To... Master Data Governance for Material: BADI USMD_SSW_SYSTEM_METHOD_CALLER to create successor change request

Cisco FindIT Plugin for Kaseya Quick Start Guide

Raspberry Pi shield board

Cisco Unified Communications Self Care Portal User Guide, Release 11.5(1)

Xperia Panel certification requirements Sony Ericsson

GS2K OV SDK User Guide. 1VV Rev

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

User s Guide to Creating PDFs for the Sony Reader

MERIDIANSOUNDINGBOARD.COM TERMS AND CONDITIONS

One Identity Starling Two-Factor HTTP Module 2.1. Administration Guide

Mile Terms of Use. Effective Date: February, Version 1.1 Feb 2018 [ Mile ] Mileico.com

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Author: Simon George and Prushothaman Palanichamy

Transcription:

Tutorial March 2009 Streaming with Project Capuchin for Adobe Flash Lite developers

Preface About this tutorial This Project Capuchin tutorial illustrates how images stored in different locations can be accessed from within a Project Capuchin application. Sony Ericsson Developer World At www.sonyericsson.com/developer, developers find the latest technical documentation and development tools such as phone White papers, Developers guidelines for different technologies, Getting started tutorials, SDKs (Software Development Kits) and tool plugins. The Web site also features news articles, go-to-market advice, moderated discussion forums offering free technical support and a Wiki community sharing expertise and code examples. For more information about these professional services, go to the Sony Ericsson Developer World Web site. This Tutorial is published by: Sony Ericsson Mobile Communications AB, SE-221 88 Lund, Sweden www.sonyericsson.com/ Sony Ericsson Mobile Communications AB, 2009. All rights reserved. You are hereby granted a license to download and/or print a copy of this document. Any rights not expressly granted herein are reserved. First edition (March 2009) Publication number: 1226-1252.1 This document is published by Sony Ericsson Mobile Communications AB, without any warranty*. Improvements and changes to this text necessitated by typographical errors, inaccuracies of current information or improvements to programs and/or equipment, may be made by Sony Ericsson Mobile Communications AB at any time and without notice. Such changes will, however, be incorporated into new editions of this document. Printed versions are to be regarded as temporary reference copies only. *All implied warranties, including without limitation the implied warranties of merchantability or fitness for a particular purpose, are excluded. In no event shall Sony Ericsson or its licensors be liable for incidental or consequential damages of any nature, including but not limited to lost profits or commercial loss, arising out of the use of the information in this document. 2 March 2009

Prerequisites In order to run the example applications of this tutorial, the Internet settings must be correctly configured in the phone. To download Internet settings, navigate to the Setup wizard in the Settings menu in the phone, and select Settings download. The Internet settings will be fetched and installed automatically. Typographical conventions In this document code examples are written in Courier font: loadmovie("res:///icon1.png"); Trademarks and acknowledgements Adobe Flash Lite and Adobe Flash are either trademarks or registered trademarks of Adobe Systems Incorporated in United States and/or other countries. Java and all Java based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc, in the U.S. and other countries. Other product and company names mentioned herein may be the trademarks of their respective owners. Document history Change history 2009-03-10 Doc. no. 1226-1252.1 First version published on Developer World 3 March 2009

Contents Introduction...5 Tutorial...6 Protocols...6 Access files as MIDlet resources...6 MidletResource example...6 Access files on the Internet...6 HttpResource example...7 Access files on internal memory or memory card in the phone...7 FileSystemResource example...7 Application signing...8 4 March 2009

Introduction This Project Capuchin tutorial provides an overview on how Capuchin applications can access images located either in the file system, a memory card, a MIDlet jar, or on the Internet. Images stored in different locations are accessed using different protocols, which are illustrated by three example applications: MidletResource application: Gives an example of how to access images put in the MIDlet resources folder. HttpResource application: Shows how images on the Internet can be accessed. FileSystemResource application: Shows how images from the file system of the phone are loaded. 5 March 2009

Tutorial Protocols The Project Capuchin API provides access to images as external files (file://), Internet resources (http://) and MIDlet resources (res://). File paths must be absolute paths, that is, the paths should point to the same location on the file system regardless of the current work directory. An absolute path usually starts with the root directory, for example, c:/ for the root directory of the internal phone memory. Access files as MIDlet resources Capuchin applications can access files put in the MIDlet jar resources folder. This is done using the res:// protocol followed by the path to the resource within the MIDlet. MidletResource example The MidletResource example application shows how the res:// protocol is used to load images from the resources folder. The images icon1.png, icon2.png and icon3.png are placed in the resources folder. To load the icon1.png image the following code is used: loadmovie("res:///icon1.png"); res:// means that the image file is placed in the resources folder, and /icon1.png is the path to the image within that folder. Access files on the Internet To access files on the Internet, the http:// protocol is used. 6 March 2009

HttpResource example The HttpResource example uses the http:// protocol to load images from the Internet. The images icon1.png, icon2.png and icon3.png are located at http://developer.sonyericsson.com/images/. The following code loads the icon1.png image into Flash: loadmovie("http://developer.sonyericsson.com/images/icon1.png"); Access files on internal memory or memory card in the phone To access image files residing in phone internal memory or on an inserted memory card, the file:// protocol is used. However, all folders are not accessible from Java applications due to restrictions in the underlying file manager API. The following folders, subfolders and files are accessible from Capuchin: <file:///c:/> (internal memory file root) <file:///c:/other> <file:///c:/pictures/> <file:///c:/sounds/> <file:///c:/videos/> <file:///c:/camera/> <file:///e:/> (memory card file root) <file:///e:/dcim/> (camera pictures folder on memory card). Which folders are accessible may differ between phone models. For more details about accessible folders, see Developers guidelines - Java ME CLDC (MIDP 2), found at http://developer.sonyericsson.com/getdocument.do?docid=65067. FileSystemResource example The first time the FileSystemResource application is run, the images to load in Flash are downloaded from the Internet and then saved in the file system. This is done on the Java side. When the images are saved, an external event is sent to Flash to notify Flash about the available images. For example, the icon1.png image is loaded with: loadmovie("file:///c:/pictures/icon1.png"); file:// indicates that the file is to be found in the file system, and /c:/pictures/ is the path to the images. 7 March 2009

Application signing Every time the application accesses the file system, the user gets a question whether to permit the access or not. In order to grant access to the file system without getting this question every time, the application needs to be signed. If the application is signed, the user will instead get a question with an extra option to approve the permission forever and never be asked again. For more information about MIDlet signing, see http://developer.sonyericsson.com/docs/doc-1640. 8 March 2009