You are on page 1of 29

Tizen

Tizen evangelist, Samsung Russia

Tizen Native Application Framework


Tizen
Native Application
Framework

Tizen

Native Framework
Base features
Application framework
Security
Graphics and Multimedia
User Interface (UI)
Communication
Web

Service features

App

Media

Telephony

Base

Messaging

Text

Content

Net

Ui

Graphics

Security

Uix

Io

Shell

Web

Locales

Social

Locations

System


Tizen

Native Framework

C++ ANSI ISO 14882 2003

GCC 4.5, LLVM 3.1

Framework

C++


__pTimer = new Timer();
__pTimer->Construct(*this);

N
(DbStatement* CreateStatementN (const
Tizen::Base::String &sqlStatement))

Tizen IDE

Native UI Builder

10

Unit Test Tool

11

Dynamic Analyzer

12

Emulator Manager

13

Command-Line Interface (CLI)

14

native-gen

native-make

native-signing

native-packaging

native-install

native-uninstall

native-run

native-debug

Native App Demo

Private-

16

Manifest: Basic

17

Manifest: Features

18

Manifest: Privileges

19

Manifest: Application Control

20

Manifest.xml

21

Hybrid App Demo

Web Apps vs Native Apps vs Hybrid Apps

Web

Hybrid

Native

+/-

+/-

23

24

Bridge

Native Service

Web App

Message Port
Websocket
JavaScriptBridge plugin

25

: Message Port
localMessagePort = tizen.messageport.requestLocalMessagePort(localMessagePortName);
localMessagePortWatchId = localMessagePort.addMessagePortListener(function(data, remote){
onReceive(data, remote); } );

Web

tizen.application.launch(appId, onSuccess, onError);

remoteMessagePort = tizen.messageport.requestRemoteMessagePort(appId, servicePortName);

void HybridServiceApp::OnMessageReceivedN(RemoteMessagePort* pRemoteMsgPort, Imap* pMsg)


{
// Check pMsg, extract command
// Prepare answer as strAnswer variable

// some code here


}
__localMessagePort = MessagePortManager::RequestLocalMessagePort(__localPortName);
__localMessagePort->AddMessagePortListener(*this);
__remoteMessagePort = MessagePortManager::RequestREmoteMessagePort(__remoteAppId, __remotePortName);

26

Native

HashMap* pMap = new HashMap(SingleObjectDeleter);


pMap->Contruct();
pMap->Add(new Strung(Lresponse), new String(strAnswer));
pRemoteMsgPort->SendMessage(__localMessagePort, pMap);

Tizen Native Application Framework



.
Tizen SDK
.
framework,
,
Tizen .

27

Unity3D, http://unity3d.com
Project Anarchy, http://havok.com
Marmalade, http://madewithmarmalade.com
GameMaker, http://yoyogames.com
GameSalad, http://gamesalad.com
Qt, http://qt-project.org
Gnome, http://www.gnome.org

28

http://developer.tizen.org/