SlideShare a Scribd company logo
DeveloperWorkshop
Hands-On: BuildingWeather
Application usingTizenWeb
Peradnya Dinata
Ib.putu@samsung.com
SamsungResearch and Development Institute Indonesia(SRIN)
SlideURL: http://tinyurl.com/TizenWebWorkshop2016
DeveloperWorkshop
Agenda
• Pre-Requisites
• Introduction
– Why& Whenusing TizenWeb
– TizenWebAPI
– TAUFramework
– TizenWebDevelopmentToolkit
• Workshop Hands-on
– ProjectStructure
– ProjectManifest
– CreatingTabNavigation
– CreatingListView
– WebRequest
– GetGeolocationInformation
– CreatingPopup&Toast
– WebLocal Storage
• OpenDiscussion
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Pre-requisites
• Java 8 SDK (forTizen IDE)
• Tizen SDK 2.4 (LatestRevision)
– https://developer.tizen.org/development/tools/download
• In TizenUpdate Manager, PleaseInstall(in 2.4 Mobile):
– Emulator
– Web app. Development (CLI & IDE)
– TAU (CLI & IDE)
• Latest GoogleChrome (forTizen Simulator)
• TizenWeather Project
– Skeleton: http://tinyurl.com/TizenWeatherSkeleton
– Complete: http://tinyurl.com/TizenWeatherComplete
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Introduction Tizen Web Development
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Why & When Using TizenWeb ?
• Easyto code!
• Can use many existing
weblibraries (ex:
AngularJS,JQuery, etc.)
• Highcustomizable (via
CSS& JS)
• HighCompatibility (via
Webkitas intermediate
layer)
• Apps that not compute
intensive
• Ifyou want to use your
codein another platform
(maybebyusingApache
Cordova)
• Ifyou don’t know how to
code inC/C++
Why ? When?
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
TizenWeb API
W3C
HTML5
Tizen
Device
API
Tizen
Web
API
• W3C/HTML5API
– API that supported by
HTML5 compliance browser
• Tizen Device API
– API that only supported by
Tizen Platform
• DeveloperGuide
– https://developer.tizen.org/
dev-guide/2.4/
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
TizenWeb API
• Base
• Account
• Application Framework
– Package, Application, etc.
• Content
• Messaging
• Multimedia
• Network
– Bluetooth, NFC (if available)
• Social
– Contact, bookmark, etc.
• System
– Setting, sensor, power, etc.
• DOM,Form,& Styles
• Device
• Graphics
• Media
• Communication
– Web Socket API
• Storage
– Web Storage, File API
• Security
• UI
• Performance
– Web Worker
• Location
• Widget
• Supplementary
– WebGL
Tizen DeviceAPI W3C/HTML5StandardAPI
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
For details:
https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/tizen-apis
DeveloperWorkshop TAU Framework
(TizenAdvancedUI Framework)
• Like Bootstrap,TAUFrameworkprovides:
– TizenUI components(ex:button,list, etc.)
– Page routing
– Event,Animation,and Effect
– Compatibilitywith JQuery
• Good References toAboutTAUFramework (2.4):
– TAU Framework Practices
• https://developer.tizen.org/dev-
guide/2.4/org.tizen.ui.practices/html/web/tau/guides_tau_w.htm
– TAU Framework Documentation
• https://developer.tizen.org/dev-
guide/2.4/org.tizen.web.apireference/html/ui_fw_api/ui_fw_api_cover.ht
m
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop TAU Framework
(TizenAdvancedUI Framework)
UIComponents TizenVersion
(Since)
Button 2.0
Checkbox 2.4
ColoredList
View
2.4
Drawer 2.3
Dropdown
Menu
2.4
Expandable 2.4
FloatingActions 2.4
GridView 2.4
IndexScrollbar 2.4
ListView 2.0
Navigation 2.3
UIComponents TizenVersion
(Since)
Page Indicator 2.4
Panel Changer 2.4
Popup 2.0
Progress 2.0
Radio 2.4
SearchInput 2.4
SectionChanger 2.4
Slider 2.0
Tabs 2.4
TextEnveloper 2.4
TextInput 2.0
Toggle Switch 2.0
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
• Thereare 23 UI
Components that
supportedbyTAU 2.4
• Example ofTAUUI
Component can be
foundat:
1. NewTizenWeb
Project
2. Click“Tizen
OnlineExample”
3. Click“TizenTAU
Component”
DeveloperWorkshop TAU Framework
(TizenAdvancedUI Framework)
Example of ListViewStyles Example of ButtonStyles
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
TizenWeb DevelopmentToolkits
• Tizen Simulator (Run Mode)
– Thefastestway torun/test yourTizenWeb code
– NeedGoogleChrome™ torun simulator
• Web Inspector (Debug Mode)
– Inspect element, resource, or networkrequest/responseof yourTizen Web
code.Thefeel is similar toGoogleChrome™Web Inspector.
– Best fordebuggingJS code, showpayloadof response.
• DynamicAnalyzer (Profile Mode)
– InspectCPU usage, memory usage,GPU usage, Energy usage, etc.
– Best forfindingbottleneck oroptimizingapps
• In-Build Checker, Beautifier, and Minifier
– ForHTML,CSS, andJS
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop TizenWeb DevelopmentToolkit
Tizen Simulator Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop TizenWeb DevelopmentToolkit
Web Inspector & Dynamic Analyzer
Debugging Analyzing
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Hands-onSession
TizenWeatherApplication
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
TizenWeb Project Structure
• /css
– Dir.to placeCSS files
• /js
– Dir.to place JSfiles
• /lib
– Dir.to place JSLib files
• /lib/tau
– Dir.ofTAU (TizenAdvanced
UI)Framework
• /index.html
– TizenWeb Main Page
• /config.xml
– TizenWeb Manifest
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
TizenWeb Project Manifest
• Overview
– GeneralInformation
• Widget
– SpecificInformation
• Features
– Declare required features
• Privileges
– Declare required API accesses
• Policy
– Declare required URL accesses
• Localization
• Preferences
• Tizen
– BuildParameter
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
TizenWeb Project Manifest
• API Privileges Detail:
– https://developer.tizen.org/development/getting-
started/web-application/understanding-tizen-
programming/security-and-api-privileges
• TizenWeb Features Detail:
– https://developer.tizen.org/development/getting-
started/web-application/understanding-tizen-
programming/application-filtering
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop CreatingTab Navigation
UsingTab andSectionTAU UI Component
Code:
Inside <div id=“main”> in index.html Result
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Add Event Listener whenChanging
Tabs
Code:
Inside “$(document).ready(…)” in main.js Result
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Creating List View
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
Code:
Inside <div id=“sectionchanger”> in index.html
DeveloperWorkshop Web Request
Part 1: Add Features & Privileges in Tizen Manifest Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
• Features
– http://tizen.org/feature/network.wifi
– http://tizen.org/feature/network.telephony
• Privileges
– http://tizen.org/privilege/internet
DeveloperWorkshop Web Request
Part 2: Add Access Policy in Tizen Manifest
• Allowweb application to
access whitelisted URL.
– Solvecross-originproblem
• HowtoAddWhitelist ?
1. Open Config.xml(Tizen
Manifest)
2. Click “Policy”tab
3. Click “Add”in accesssection
• Toopentheaccessfor all
networkURLs:
– NetworkURL: “*”
– Allowsubdomain:true
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop Web Request
Part 3:Add Request of Current & Forecast Weather Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
Code:
InsideClass WeatherAPI in main.js
DeveloperWorkshop Web Request
Part 4:Trigger the request when changing tabs Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
Code:
Inside “$(document).ready(…)” in main.js
As DefaultGPSValue
DeveloperWorkshop GetGeolocationInformation
Trigger the GeolocationAPI when apps started
Code:
Inside “$(document).ready(…)” in main.js
TizenManifestSettings
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
• Features
– http://tizen.org/feature/loca
tion.gps
• Privileges
– http://tizen.org/privilege/lo
cation
Code:
InsideClass GeolocationAPI in main.js
DeveloperWorkshop
Providing FakeGeolocation
TizenSimulator
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
Tizen Emulator
DeveloperWorkshop
Creating Popup &Toast
• Popup will be
showing when
user starting
the app for the
first time
• Toast will be use
as notification
for clearing
webStorage
Code:
Inside <div id=“main”> in index.html Info
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Creating Popup &Toast
Code:
Inside “$(document).ready(…)” in Main.js Result
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
• Register popup andtoast
DeveloperWorkshop Web LocalStorage
ImplementingWeb LocalStorage into Popup
Code:
Inside “$(document).ready(…)” in Main.js Result
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
• Addclickevent handling to remove localStorage
• Add localStorageto save popup state(firsttime popup)
DeveloperWorkshop
Project Result
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
Open Discussion
 Pre-Requisites
 Introduction
 Why & When using Tizen
Web
 TizenWeb API
 TAUFramework
 TizenWeb Development
Toolkit
 Workshop Hands-on
 Project Structure
 Project Manifest
 CreatingTab Navigation
 CreatingList View
 Web Request
 Get Geolocation
Information
 CreatingPopup & Toast
 Web LocalStorage
 Open Discussion
DeveloperWorkshop
The End –ThankYou
Completed source code of this workshop can bedownloadat:
http://tinyurl.com/TizenWeatherComplete
DeveloperWorkshop
Backup Slide

More Related Content

PDF
Samsung Indonesia: Tizen Native App
PPTX
Tizen Native Application Development with C/C++
PDF
Samsung Indonesia: Tizen Wearables
KEY
Appcelerator Titanium - Hybrid App-Development
PDF
Introduction to Appcelerator Titanium
PPTX
Tizen introduction & architecture
PDF
Appcelerator Titanium Intro (2014)
PDF
Ionic in 30
Samsung Indonesia: Tizen Native App
Tizen Native Application Development with C/C++
Samsung Indonesia: Tizen Wearables
Appcelerator Titanium - Hybrid App-Development
Introduction to Appcelerator Titanium
Tizen introduction & architecture
Appcelerator Titanium Intro (2014)
Ionic in 30

What's hot (20)

PPTX
NCDevCon 2017 - Cross Platform Mobile Apps
PDF
Ionic App Platform Overview
PDF
Move Desktop Apps to the Cloud - RollApp & Embarcadero webinar
PDF
Building advanced Chats Bots and Voice Interactive Assistants - Stève Sfartz ...
PDF
Ionic event: March 2021
PDF
Xamarin v.Now
PPTX
Hassle-Free Continuous Integration with Real Device Testing
PDF
Hybrid App Development, Redefined
PDF
Mobile Development Options
PDF
New NeXt for Advanced Developers
PDF
Capacitor 1.0 launch
PDF
Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
KEY
OSGi, Eclipse and API Tooling
PDF
Ionic Native: Native-powered apps, without the hassle
PPTX
Getting started with Appcelerator Titanium
PPTX
Embedding Messages and Video Calls in your apps
PDF
The internet of things in now , see how golang is a part of this evolution
PPTX
Crosswalk and the Intel XDK
PPTX
Intel XDK in Brief
PPTX
Mobile Web Apps and the Intel® XDK
NCDevCon 2017 - Cross Platform Mobile Apps
Ionic App Platform Overview
Move Desktop Apps to the Cloud - RollApp & Embarcadero webinar
Building advanced Chats Bots and Voice Interactive Assistants - Stève Sfartz ...
Ionic event: March 2021
Xamarin v.Now
Hassle-Free Continuous Integration with Real Device Testing
Hybrid App Development, Redefined
Mobile Development Options
New NeXt for Advanced Developers
Capacitor 1.0 launch
Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
OSGi, Eclipse and API Tooling
Ionic Native: Native-powered apps, without the hassle
Getting started with Appcelerator Titanium
Embedding Messages and Video Calls in your apps
The internet of things in now , see how golang is a part of this evolution
Crosswalk and the Intel XDK
Intel XDK in Brief
Mobile Web Apps and the Intel® XDK
Ad

Viewers also liked (15)

PDF
OpenMobile ACL bringing Android apps to TIZEN
PDF
Sharman 2015 PhD thesis
PPT
Latihan 1 tata
PDF
EPA CAA Email 9.4.03
PPT
Sdc11 feb14 class12
PPT
Composicion bidimensional (1)
PPT
Wondrous Wise Words
PDF
Rhoades_logo_color
PPT
Animation lesson 2
PPT
นิป เอมรัฐ
PPTX
두피에좋은음식
PPTX
The 50 Most Popular Hashtags on Instagram in 2014
PPTX
How to rock the stage! Dr James Whittake and Dr Michelle Dickinson
PDF
なぜ研究者の名寄せが必要か ~ 世界の動向と研究者リゾルバー ~
PDF
DAMA Webinar: Influencing with Data – Facts Don’t Matter Much!
OpenMobile ACL bringing Android apps to TIZEN
Sharman 2015 PhD thesis
Latihan 1 tata
EPA CAA Email 9.4.03
Sdc11 feb14 class12
Composicion bidimensional (1)
Wondrous Wise Words
Rhoades_logo_color
Animation lesson 2
นิป เอมรัฐ
두피에좋은음식
The 50 Most Popular Hashtags on Instagram in 2014
How to rock the stage! Dr James Whittake and Dr Michelle Dickinson
なぜ研究者の名寄せが必要か ~ 世界の動向と研究者リゾルバー ~
DAMA Webinar: Influencing with Data – Facts Don’t Matter Much!
Ad

Similar to Samsung Indonesia: Tizen Web Apps (20)

PPTX
ESPC 2016 - From SharePoint to Office 365 Development - The path to your new ...
PPTX
SharePoint Fest Chicago - From SharePoint to Office 365 Development
PPTX
Modeveast Appcelerator Presentation
PDF
Tizen 2.0 overview
PPTX
SharePoint Saturday Ottawa - From SharePoint to Office 365 Development
PDF
Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi (Samsung) - Korea Lin...
PPTX
SharePoint Fest Seattle 2019 - From SharePoint to Office 365 Development
PPTX
SharePoint Fest DC 2019 - From SharePoint to Office 365 Development
PPTX
SharePoint Fest Chicago 2018 - From SharePoint to Office 365 development
PPTX
SharePoint Fest Chicago 2019 - From SharePoint to Office 365 Development
PPTX
SPTechCon Austin 2019 - From SharePoint to Office 365 development
PPTX
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
PPTX
#Techorama belgium 2018 vincent biret what's new with the #MicrosoftGraph
PPTX
Cross Site Collection Navigation
PPTX
Vincent biret azure functions and flow (ottawa)
PPTX
Vincent biret azure functions and flow (toronto)
PDF
Real World SharePoint Framework and Azure Services
PPTX
aOS Canadian Tour - Ottawa - From SharePoint to Office 365 Development
PPTX
aOS Canadian Tour - Toronto - From SharePoint to Office 365 Development
PPTX
aOS Canadian Tour - Montreal - From SharePoint to Office 365 Development
ESPC 2016 - From SharePoint to Office 365 Development - The path to your new ...
SharePoint Fest Chicago - From SharePoint to Office 365 Development
Modeveast Appcelerator Presentation
Tizen 2.0 overview
SharePoint Saturday Ottawa - From SharePoint to Office 365 Development
Introduction to the Tizen SDK 2.0.0 Alpha - Taiho Choi (Samsung) - Korea Lin...
SharePoint Fest Seattle 2019 - From SharePoint to Office 365 Development
SharePoint Fest DC 2019 - From SharePoint to Office 365 Development
SharePoint Fest Chicago 2018 - From SharePoint to Office 365 development
SharePoint Fest Chicago 2019 - From SharePoint to Office 365 Development
SPTechCon Austin 2019 - From SharePoint to Office 365 development
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
#Techorama belgium 2018 vincent biret what's new with the #MicrosoftGraph
Cross Site Collection Navigation
Vincent biret azure functions and flow (ottawa)
Vincent biret azure functions and flow (toronto)
Real World SharePoint Framework and Azure Services
aOS Canadian Tour - Ottawa - From SharePoint to Office 365 Development
aOS Canadian Tour - Toronto - From SharePoint to Office 365 Development
aOS Canadian Tour - Montreal - From SharePoint to Office 365 Development

More from Ryo Jin (20)

PDF
Why is EFL used on Tizen?
PDF
Samsung Z4 User Manual
PDF
Samsung ARTIK 050 (ARTIK ZERO) Modules Data Sheet
PDF
Introduction to Watch Face Development with Tizen Studio
PDF
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
PDF
Panduan Penggunaan Perangkat Wearable Tizen
PDF
Cara Menggunakan Smartphone Tizen
PDF
Gear Fit2 Watchface Design Guide
PDF
Samsung Indonesia: Tizen Store
PDF
Samsung Indonesia: Tizen Platform Overview and IoT
PDF
Russian Tizen Project
PDF
Samsung SM-R360 Tizen User Manual
PDF
Tizen Micro Profile for IoT device
PDF
Panduan Dasar Pemrograman Tizen
PDF
The Story of Enlightenment, EFL, Tizen and Wayland
PDF
Tizen PASS
PDF
Tizen PASS
PDF
Samsung Gear UI Design Guidelines
PDF
Attack surface analysis of Tizen devices
PDF
Samsung DeepSort
Why is EFL used on Tizen?
Samsung Z4 User Manual
Samsung ARTIK 050 (ARTIK ZERO) Modules Data Sheet
Introduction to Watch Face Development with Tizen Studio
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
Panduan Penggunaan Perangkat Wearable Tizen
Cara Menggunakan Smartphone Tizen
Gear Fit2 Watchface Design Guide
Samsung Indonesia: Tizen Store
Samsung Indonesia: Tizen Platform Overview and IoT
Russian Tizen Project
Samsung SM-R360 Tizen User Manual
Tizen Micro Profile for IoT device
Panduan Dasar Pemrograman Tizen
The Story of Enlightenment, EFL, Tizen and Wayland
Tizen PASS
Tizen PASS
Samsung Gear UI Design Guidelines
Attack surface analysis of Tizen devices
Samsung DeepSort

Recently uploaded (20)

PPTX
CRUISE TICKETING SYSTEM | CRUISE RESERVATION SOFTWARE
PPTX
Odoo Consulting Services by CandidRoot Solutions
PDF
Build Multi-agent using Agent Development Kit
PPTX
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
PDF
Become an Agentblazer Champion Challenge
PDF
The Future of Smart Factories Why Embedded Analytics Leads the Way
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
PPTX
Safe Confined Space Entry Monitoring_ Singapore Experts.pptx
PDF
Community & News Update Q2 Meet Up 2025
PDF
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
PDF
How to Confidently Manage Project Budgets
PPTX
Benefits of DCCM for Genesys Contact Center
PDF
Jenkins: An open-source automation server powering CI/CD Automation
PDF
Micromaid: A simple Mermaid-like chart generator for Pharo
PDF
Become an Agentblazer Champion Challenge Kickoff
PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
PPTX
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Presentation of Computer CLASS 2 .pptx
PPTX
AIRLINE PRICE API | FLIGHT API COST |
CRUISE TICKETING SYSTEM | CRUISE RESERVATION SOFTWARE
Odoo Consulting Services by CandidRoot Solutions
Build Multi-agent using Agent Development Kit
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
Become an Agentblazer Champion Challenge
The Future of Smart Factories Why Embedded Analytics Leads the Way
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Safe Confined Space Entry Monitoring_ Singapore Experts.pptx
Community & News Update Q2 Meet Up 2025
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
How to Confidently Manage Project Budgets
Benefits of DCCM for Genesys Contact Center
Jenkins: An open-source automation server powering CI/CD Automation
Micromaid: A simple Mermaid-like chart generator for Pharo
Become an Agentblazer Champion Challenge Kickoff
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
How Creative Agencies Leverage Project Management Software.pdf
Presentation of Computer CLASS 2 .pptx
AIRLINE PRICE API | FLIGHT API COST |

Samsung Indonesia: Tizen Web Apps

  • 1. DeveloperWorkshop Hands-On: BuildingWeather Application usingTizenWeb Peradnya Dinata [email protected] SamsungResearch and Development Institute Indonesia(SRIN) SlideURL: http://tinyurl.com/TizenWebWorkshop2016
  • 2. DeveloperWorkshop Agenda • Pre-Requisites • Introduction – Why& Whenusing TizenWeb – TizenWebAPI – TAUFramework – TizenWebDevelopmentToolkit • Workshop Hands-on – ProjectStructure – ProjectManifest – CreatingTabNavigation – CreatingListView – WebRequest – GetGeolocationInformation – CreatingPopup&Toast – WebLocal Storage • OpenDiscussion  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 3. DeveloperWorkshop Pre-requisites • Java 8 SDK (forTizen IDE) • Tizen SDK 2.4 (LatestRevision) – https://developer.tizen.org/development/tools/download • In TizenUpdate Manager, PleaseInstall(in 2.4 Mobile): – Emulator – Web app. Development (CLI & IDE) – TAU (CLI & IDE) • Latest GoogleChrome (forTizen Simulator) • TizenWeather Project – Skeleton: http://tinyurl.com/TizenWeatherSkeleton – Complete: http://tinyurl.com/TizenWeatherComplete  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 4. DeveloperWorkshop Introduction Tizen Web Development  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 5. DeveloperWorkshop Why & When Using TizenWeb ? • Easyto code! • Can use many existing weblibraries (ex: AngularJS,JQuery, etc.) • Highcustomizable (via CSS& JS) • HighCompatibility (via Webkitas intermediate layer) • Apps that not compute intensive • Ifyou want to use your codein another platform (maybebyusingApache Cordova) • Ifyou don’t know how to code inC/C++ Why ? When?  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 6. DeveloperWorkshop TizenWeb API W3C HTML5 Tizen Device API Tizen Web API • W3C/HTML5API – API that supported by HTML5 compliance browser • Tizen Device API – API that only supported by Tizen Platform • DeveloperGuide – https://developer.tizen.org/ dev-guide/2.4/  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 7. DeveloperWorkshop TizenWeb API • Base • Account • Application Framework – Package, Application, etc. • Content • Messaging • Multimedia • Network – Bluetooth, NFC (if available) • Social – Contact, bookmark, etc. • System – Setting, sensor, power, etc. • DOM,Form,& Styles • Device • Graphics • Media • Communication – Web Socket API • Storage – Web Storage, File API • Security • UI • Performance – Web Worker • Location • Widget • Supplementary – WebGL Tizen DeviceAPI W3C/HTML5StandardAPI  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion For details: https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/tizen-apis
  • 8. DeveloperWorkshop TAU Framework (TizenAdvancedUI Framework) • Like Bootstrap,TAUFrameworkprovides: – TizenUI components(ex:button,list, etc.) – Page routing – Event,Animation,and Effect – Compatibilitywith JQuery • Good References toAboutTAUFramework (2.4): – TAU Framework Practices • https://developer.tizen.org/dev- guide/2.4/org.tizen.ui.practices/html/web/tau/guides_tau_w.htm – TAU Framework Documentation • https://developer.tizen.org/dev- guide/2.4/org.tizen.web.apireference/html/ui_fw_api/ui_fw_api_cover.ht m  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 9. DeveloperWorkshop TAU Framework (TizenAdvancedUI Framework) UIComponents TizenVersion (Since) Button 2.0 Checkbox 2.4 ColoredList View 2.4 Drawer 2.3 Dropdown Menu 2.4 Expandable 2.4 FloatingActions 2.4 GridView 2.4 IndexScrollbar 2.4 ListView 2.0 Navigation 2.3 UIComponents TizenVersion (Since) Page Indicator 2.4 Panel Changer 2.4 Popup 2.0 Progress 2.0 Radio 2.4 SearchInput 2.4 SectionChanger 2.4 Slider 2.0 Tabs 2.4 TextEnveloper 2.4 TextInput 2.0 Toggle Switch 2.0  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion • Thereare 23 UI Components that supportedbyTAU 2.4 • Example ofTAUUI Component can be foundat: 1. NewTizenWeb Project 2. Click“Tizen OnlineExample” 3. Click“TizenTAU Component”
  • 10. DeveloperWorkshop TAU Framework (TizenAdvancedUI Framework) Example of ListViewStyles Example of ButtonStyles  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 11. DeveloperWorkshop TizenWeb DevelopmentToolkits • Tizen Simulator (Run Mode) – Thefastestway torun/test yourTizenWeb code – NeedGoogleChrome™ torun simulator • Web Inspector (Debug Mode) – Inspect element, resource, or networkrequest/responseof yourTizen Web code.Thefeel is similar toGoogleChrome™Web Inspector. – Best fordebuggingJS code, showpayloadof response. • DynamicAnalyzer (Profile Mode) – InspectCPU usage, memory usage,GPU usage, Energy usage, etc. – Best forfindingbottleneck oroptimizingapps • In-Build Checker, Beautifier, and Minifier – ForHTML,CSS, andJS  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 12. DeveloperWorkshop TizenWeb DevelopmentToolkit Tizen Simulator Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 13. DeveloperWorkshop TizenWeb DevelopmentToolkit Web Inspector & Dynamic Analyzer Debugging Analyzing  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 14. DeveloperWorkshop Hands-onSession TizenWeatherApplication  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 15. DeveloperWorkshop TizenWeb Project Structure • /css – Dir.to placeCSS files • /js – Dir.to place JSfiles • /lib – Dir.to place JSLib files • /lib/tau – Dir.ofTAU (TizenAdvanced UI)Framework • /index.html – TizenWeb Main Page • /config.xml – TizenWeb Manifest  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 16. DeveloperWorkshop TizenWeb Project Manifest • Overview – GeneralInformation • Widget – SpecificInformation • Features – Declare required features • Privileges – Declare required API accesses • Policy – Declare required URL accesses • Localization • Preferences • Tizen – BuildParameter  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 17. DeveloperWorkshop TizenWeb Project Manifest • API Privileges Detail: – https://developer.tizen.org/development/getting- started/web-application/understanding-tizen- programming/security-and-api-privileges • TizenWeb Features Detail: – https://developer.tizen.org/development/getting- started/web-application/understanding-tizen- programming/application-filtering  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 18. DeveloperWorkshop CreatingTab Navigation UsingTab andSectionTAU UI Component Code: Inside <div id=“main”> in index.html Result  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 19. DeveloperWorkshop Add Event Listener whenChanging Tabs Code: Inside “$(document).ready(…)” in main.js Result  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 20. DeveloperWorkshop Creating List View  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion Code: Inside <div id=“sectionchanger”> in index.html
  • 21. DeveloperWorkshop Web Request Part 1: Add Features & Privileges in Tizen Manifest Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion • Features – http://tizen.org/feature/network.wifi – http://tizen.org/feature/network.telephony • Privileges – http://tizen.org/privilege/internet
  • 22. DeveloperWorkshop Web Request Part 2: Add Access Policy in Tizen Manifest • Allowweb application to access whitelisted URL. – Solvecross-originproblem • HowtoAddWhitelist ? 1. Open Config.xml(Tizen Manifest) 2. Click “Policy”tab 3. Click “Add”in accesssection • Toopentheaccessfor all networkURLs: – NetworkURL: “*” – Allowsubdomain:true  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 23. DeveloperWorkshop Web Request Part 3:Add Request of Current & Forecast Weather Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion Code: InsideClass WeatherAPI in main.js
  • 24. DeveloperWorkshop Web Request Part 4:Trigger the request when changing tabs Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion Code: Inside “$(document).ready(…)” in main.js As DefaultGPSValue
  • 25. DeveloperWorkshop GetGeolocationInformation Trigger the GeolocationAPI when apps started Code: Inside “$(document).ready(…)” in main.js TizenManifestSettings  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion • Features – http://tizen.org/feature/loca tion.gps • Privileges – http://tizen.org/privilege/lo cation Code: InsideClass GeolocationAPI in main.js
  • 26. DeveloperWorkshop Providing FakeGeolocation TizenSimulator  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion Tizen Emulator
  • 27. DeveloperWorkshop Creating Popup &Toast • Popup will be showing when user starting the app for the first time • Toast will be use as notification for clearing webStorage Code: Inside <div id=“main”> in index.html Info  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 28. DeveloperWorkshop Creating Popup &Toast Code: Inside “$(document).ready(…)” in Main.js Result  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion • Register popup andtoast
  • 29. DeveloperWorkshop Web LocalStorage ImplementingWeb LocalStorage into Popup Code: Inside “$(document).ready(…)” in Main.js Result  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion • Addclickevent handling to remove localStorage • Add localStorageto save popup state(firsttime popup)
  • 30. DeveloperWorkshop Project Result  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 31. DeveloperWorkshop Open Discussion  Pre-Requisites  Introduction  Why & When using Tizen Web  TizenWeb API  TAUFramework  TizenWeb Development Toolkit  Workshop Hands-on  Project Structure  Project Manifest  CreatingTab Navigation  CreatingList View  Web Request  Get Geolocation Information  CreatingPopup & Toast  Web LocalStorage  Open Discussion
  • 32. DeveloperWorkshop The End –ThankYou Completed source code of this workshop can bedownloadat: http://tinyurl.com/TizenWeatherComplete