Разработка нативных приложений для tizen_Ренат...

Upload: -

Post on 30-Oct-2015

301 views

Category:

Documents


0 download

TRANSCRIPT

This is an example of a Long Presentation Title Flowing onto Multiple Lines

Tizen

Tizen evangelist, Samsung Russia Tizen Native Application Framework 2

2 Tizen Native Application Framework

Tizen4

4 Native FrameworkBase featuresApplication frameworkSecurityGraphics and MultimediaUser Interface (UI)CommunicationWebService features5

6AppMediaTelephonyBaseMessagingTextContentNetUiGraphicsSecurityUixIoShellWebLocalesSocialLocationsSystem

Tizen

Native Framework C++ ANSI ISO 14882 2003 GCC 4.5, LLVM 3.1Framework C++ N (DbStatement* CreateStatementN (const Tizen::Base::String &sqlStatement))8

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

Native UI Builder10

Unit Test Tool11

Dynamic Analyzer12

Emulator Manager13

Command-Line Interface (CLI)14

native-gen native-make native-signing native-packaging native-install native-uninstall native-run native-debug Native App Demo

16

Private-Manifest: Basic17

Manifest: Features18

Manifest: Privileges19

Manifest: Application Control20

Manifest.xml21

Hybrid App Demo

Web Apps vs Native Apps vs Hybrid Apps23

WebHybridNative ++/--++/---++ -++ 24

25

Native ServiceWeb App Message Port Websocket JavaScriptBridge pluginBridge : Message Port26

localMessagePort = tizen.messageport.requestLocalMessagePort(localMessagePortName);

localMessagePortWatchId = localMessagePort.addMessagePortListener(function(data, remote){ onReceive(data, remote); } );

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

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

// some code here}

__localMessagePort = MessagePortManager::RequestLocalMessagePort(__localPortName);__localMessagePort->AddMessagePortListener(*this);

__remoteMessagePort = MessagePortManager::RequestREmoteMessagePort(__remoteAppId, __remotePortName);WebNativeTizen Native Application Framework .Tizen SDK . framework, , Tizen .27

27Unity3D, http://unity3d.comProject Anarchy, http://havok.comMarmalade, http://madewithmarmalade.comGameMaker, http://yoyogames.comGameSalad, http://gamesalad.comQt, http://qt-project.orgGnome, http://www.gnome.org

28

28 ! http://developer.tizen.org/