Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi (Samsung) - Korea Linux Forum 2012

39

Click here to load reader

description

Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi (Samsung) - Korea Linux Forum 2012

Transcript of Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi (Samsung) - Korea Linux Forum 2012

Page 1: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

Introduction to Tizen SDK 2.0.0 Alpha

Taiho Choi

Samsung Electronics

Page 2: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

• Web technologies of Tizen

• Components of SDK 2.0.0 Alpha

• Hello world!

• Debugging apps

• Summary

Contents

Page 3: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

1

Web technologies on Tizen

Page 4: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

4/39

HTML5 CSS3

JavaScript

Web technologies on Tizen

• Tizen utilizes web technologies for application compatibility

Smart Phones

Tablet PCs Net Books

Smart TVs In-Vehicle-Infotainment

Page 5: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

5/39

Supported web APIs

• Tizen follows many standard W3C APIs and provides a powerful set of device specific APIs

Alarm

Application Bluetooth

Calendar

Call Contact FileSystem

Geocoder LBS

Media Content

Messaging

NFC System Information

Time Power

Tizen specific Device API

Button Check Box

Color Context Pop-up

Header & Footer

Image Slider

List

Control bar

Handler

Multimedia View

Option Header

Pop-up

Web UI framework

Audio Video

Canvas

Media Query Geolocation

Orientation

Acceleration

2D Transforms

3D Transforms Animations

WebSocket

XMLHTTPRequest

CORS

Serve-Sent Events Web Storage

File API

Application Cache

Web SQL DB Web Worker

W3C API

WebGL Fullscreen

Viewport Metatag

Typed Array

Supplementary API

Page 6: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

2

Component of Tizen SDK 2.0.0 Alpha

Page 7: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

7/39

Tizen SDK

• Consists of – IDE

– Web Simulator

– Emulator

– Event Injector

– UI Builder

– Documents

– Sample applications

– Remote Inspector

– Localization Wizard

– Project Wizard

– …

Page 8: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

8/39

IDE

• Eclipse + additional plug-ins

Project explorer

Connection explorer

Editor area

Outline/ Event Injector

Property/ HTML/

CSS Preview Problems/ Console/

Pages

Page 9: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

9/39

Web Simulator

• Can simulate Tizen Web App. – Using Configuration Panel, simulates various aspect of device

Configuration panel

Page 10: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

10/39

Emulator

• Emulator – Using Emulator Manager, you can configure certain device characteristics

– You can test your application before deploying to physical device

• Connection Explorer – Shows connected devices and emulators

– Can explore the file system of the device

Page 11: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

11/39

Event Injector

• Artificial events are generated and transferred to emulator – Device

– Location

– NFC

– Sensor

– Telephony

Page 12: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

12/39

UI Builder

• UI layout code generation

• Easy programming model – Tizen Web UI Builder Project

Page 13: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

13/39

Documents

• Documentation for development is provided – Getting started with Tizen

– Programming guide & Tutorials

– API references

– Tizen platform programming

Help->Help Contents

Page 14: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

14/39

Sample applications

• Speeds up the learning curve for a new developers – 15 sample applications are provided to demonstrate the Tizen Web API

Page 15: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

3

Hello world!

Page 16: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

16/39

Creating a project

• Create a new project

• Select project template File -> New ->Tizen Web Project

Write project name

Select project template

Page 17: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

17/39

Files in project

• Files created using Blank template

• Files created using Tizen Web UI Builder template

File Description

config.xml General information about icon, license, width, height, and others

index.html App starting page

icon.png Application icon shown on menu

main.js Main JavaScript file

style.css CSS file to define consistent look and feel

File Description

page Set of files describes how to construct an individual page

app.xml Manages page hierarchy, page transition, event handler binding

tizen-ui-builder-fw

Framework files that define page base-class and start-up page

tizen-web-ui-fw

Tizen Web UI Framework library

Page 18: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

18/39

config.xml - Feature

• To use restricted APIs, declare features

Page 19: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

19/39

config.xml - Access

• Declare the URL to access external network resources

Page 20: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

20/39

config.xml - Preferences

• Persistently stored name-value pair that is associated with the application the first time the application is initiated

Page 21: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

21/39

config.xml - Tizen

• Setting for Tizen schema extension, like ID or appservice

Page 22: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

22/39

Creating Emulator

• Using Emulator Manager, you can create an emulator – Click button in Connection Explorer

Page 23: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

23/39

Creating Emulator

• Using Emulator Manager, you can create an emulator – Click button in Connection Explorer

Page 24: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

24/39

Creating Emulator

• Using Emulator Manager, you can create an emulator – Click button in Connection Explorer

Page 25: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

25/39

Running apps on emulator

Run -> Run As ->Tizen Web Application

Page 26: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

26/39

Localization

• Tizen provides a tool for multi-lingual support

Project -> Localization -> Localization Wizard

Page 27: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

27/39

Localization wizard

• Select files for localization

Page 28: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

28/39

Localization wizard

• Select the locales

Page 29: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

29/39

Localization wizard

• Associate files with specific locales

Page 30: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

30/39

Localization

• Update the files on locales folder

Page 31: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

4

Debugging apps

Page 32: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

32/39

Writing code

• “Contents Assist” suggests available functions and keywords

• “Jlint” automatically shows the syntax errors and warnings

Page 33: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

33/39

Log messages

• Display messages in console view – console.log("console.log");

– console.info("console.info");

– console.warn("console.warn");

– console.error("console.error");

– console.debug("console.debug");

Page 34: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

34/39

Remote Inspector

• Remote Inspector supports JavaScript debugging with Emulator

Run ->Debug As -> Tizen Web Application

Page 35: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

35/39

Breakpoint & Watch Expression

• Opening a JavaScript File

• Adding a breakpoint – Right Click on Line number -> select “Add Breakpoint”

• Adding a watch expressions

Page 36: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

5

Summary

Page 37: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

37/39

Summary

• Tizen SDK supports various tools for Web app development

Page 38: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

Tizen information & support

Main site : https://www.tizen.org Developer site : https://developer.tizen.org

Source site: https://source.tizen.org Issue-tracking site: https://bugs.tizen.org

Page 39: Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi  (Samsung) - Korea Linux Forum 2012

Thank you!