22
Windows phone Xperia X1 Panels Design and Development Jinho Seo (twitter: @synabreu) Mobile/Embedded Developer Evangelist Microsoft Korea http://blogs.msdn.com/jinhoseo

Sony Erricson X1 Panel Development

Embed Size (px)

DESCRIPTION

SonyErricson X1 Panel

Citation preview

Page 1: Sony Erricson X1 Panel Development

Windows phone Xperia X1 Panels Design and Development

Jinho Seo (twitter: @synabreu)Mobile/Embedded Developer Evangelist

Microsoft Koreahttp://blogs.msdn.com/jinhoseo

Page 2: Sony Erricson X1 Panel Development

2

Agenda

1. What is Xperia Panels?2. Installation of the Sony

Ericson SDK for Windows Mobile 6.1

3. A Types of Xperia Panels4. Creating and Deploying

Xperia Panels on Device Emulator

5. Debugging Xperia Panels on Device and Device Emulator

Page 3: Sony Erricson X1 Panel Development

3

What is Xperia Panels?

• What are Xperia Panels?Extension plug-in DLL that implements a specific Panel API that allows it to be configured and launched from within the Xperia Panel Interface.

• A Types of Xperia Panels– Xperia Native Panel– Xperia HTML Panel– Xperia OpenGL Panel

Page 4: Sony Erricson X1 Panel Development

4

Install Sony Ericsson SDK for Windows Mobile 6.1

• Step by Step Guide http://blogs.msdn.com/jinhoseo/archive/2008/12/23/0-t.aspx• Final Step : Install Sony Ericsson SDK for Windows Mobile 6.1

Download URL: http://developer.sonyericsson.com/site/global/docstools/windowsmobile/p_windowsmobile.jsp

• Configuring Xperia Device Emulator in Visual Studio 2008

Page 5: Sony Erricson X1 Panel Development

5

Configuring Xperia Device Emulator (1)

• Open Tools menu and choose Options

Click icon to add picture

• Rename XPERIA X1 of Windows Mobile 6 Professional VGA Emulator

Page 6: Sony Erricson X1 Panel Development

6

Configuring Xperia Device Emulator (2)

• Choose Emulator Options

• Rename Skin FilesC:\Program Files\Windows Mobile 6 SDK\PocketPC\Deviceemulation\Pocket_PC_X1\Pocket_PC_X1.xml

Page 7: Sony Erricson X1 Panel Development

7

Xperia Panels Architecture

HTML Panel Native Panel

Windows phone

Xpanel Resource

HTML Panels Native Panels OpenGL Panels

Page 8: Sony Erricson X1 Panel Development

8

Xperia HTML Panel (1)• Panel API and JavaScript to define its interface and functionality• Program Files\Panels\DemoPanel• File System View : Adding index.html, HTMLPanel.dll,

HtmlPanel.dll.<LCID>.MUI and image resources

Page 9: Sony Erricson X1 Panel Development

9

Xperia HTML Panel (2)• Customize HTML, style.css and images• Adding HTMLPanel.dll

– C:\Program Files\Sony Ericsson\SDK WM6\SEMC_VS_DEV\LIB

Page 10: Sony Erricson X1 Panel Development

10

Xperia HTML Panel (3)• Customize HTML, style.css and images• Adding HTMLPanel.dll

– C:\Program Files\Sony Ericsson\SDK WM6\SEMC_VS_DEV\LIB

Page 11: Sony Erricson X1 Panel Development

11

Xperia HTML Panel (4)

• View->Registry• Installation Key

HKEY_LOCAL_MACHINE/Software/SonyEricsson/Panels/HTML Demo Panel

• Mandatory ValuesDLL, Landscape, LargeLandscape, Portrait, LargePortrait, Name, DisableWait(1), RequiredVersion(100), Desc

Page 12: Sony Erricson X1 Panel Development

12

Xperia HTML Panel (5)• Mandatory values in the HtmlPanelSettings Key

1) Url – The Url that HTML Panel will load at startup2) Timeout – HTML page loading timeout in milliseconds. Millisecond Value is 10000 3) Snapshot – 1 (Landscape, LargeLandscape, Portrait and LargeStrait)

• BrowserRestrictions Key1) AllowUrlMask - *, all of pages2) DenyUrlMask – Restricted domain

Page 13: Sony Erricson X1 Panel Development

A Tutorial of HTML Panel

Demo

Page 14: Sony Erricson X1 Panel Development

14

Xperia Native Panel

• C/C++ Programming Model• Using Visual Studio 2008

1) New -> Project2) Select Xperia Panel Project

Click icon to add picture

• Enter your name and Select a Class Name

Page 15: Sony Erricson X1 Panel Development

A Tutorial of Native Panel

Demo

Page 16: Sony Erricson X1 Panel Development

16

Xperia OpenGL ES Panel (1)

• Support to OpenGL ES 1.1 library• Injecting OpenGL code into a Native Panel

1) Source code for the DLL that implements the Panel2) Deployment of the DLL and accompany resource and registry settings

• Linking to the Open GL ES Library

Page 17: Sony Erricson X1 Panel Development

17

Xperia OpenGL ES Panel (2)• Creating the OpenGLESPanel DLL

1) Included OpenGLES header files2) Define Fixed Point Constants3) Include EGL Constants: g_Display, g_EGLSurface and g_EGLContext• Adding WndProc for your draw function• Implementing interface funtions

1) InitializeCustomItem2) ReleaseCustomItem• Additional Methods

1) gluesPerspective2) drawCube• Calling the Drawing Routing – WM_PAINT

Page 18: Sony Erricson X1 Panel Development

A Tutorial of Xperia Open GL Panel

Demo

Page 19: Sony Erricson X1 Panel Development

19

Debugging Xperia X1 Device Emulator

• HKEY_LOCAL_MACHINE/Software/SonyEricsson/PanelManager• SLOT2 – HTML Demo

Panel• Add HTMLPanelLauncher

or NativePanelLauncher• Execute

HTMLPanelLancher or NativePanelLauncher

Click icon to add picture

Page 20: Sony Erricson X1 Panel Development

20

Deploying Xperia X1 Device Emulator or Device

• Building and Deploying CAB Files• Device Emulator

1) Cradle to device emulator2) HTMLPanelLauncher or NativePanelLauncher

• Xperia X1 Device 1) Manually Copy and Install2) Click on Panel Button

• Test and Certification in your CAB Files

Page 21: Sony Erricson X1 Panel Development

Just do it now!Conclusion

Page 22: Sony Erricson X1 Panel Development

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the

date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.