SlideShare a Scribd company logo
Bhasker Thapan
Developer Group Manager , Noida
bhasker@blackberrydevteam.com
October 10, 2012
www.blackberrydevteam.com
Topics
Introduction : BlackBerry WebWorks

HTML5

Web App Vs Native App

Why BlackBerry WebWorks

BlackBerry WebWorks App Development
Introduction to BlackBerry WebWorks


 Mission….




       To create, as a community, a simple to use cross platform SDK for Web
       Developers to package their Web assets as a mobile application which
             has Secure access to deeply integrated system level APIs.
Using HTML5 In Your Application

HTML5 is a standardized technology
   • Supported consistently across different platforms and engines
   • Enhancements to existing standard allow integration with platform

See “HTML reference – BlackBerry browser” documentation
     • Complete list of BlackBerry supported HTML5 elements
     • http://bit.ly/aGFoub

Many great HTML5 learning resources available online
   • http://diveintohtml5.org/
   • http://html5demos.com
   • http://www.w3schools.com/html5/default.asp
   • http://www.html5test.com
Web App Vs Native App


                           Native App        Web App

      Internet Access     Not Required       Required

       Performance             Yes             No

      Hardware Access          Yes             No

        OS Access              Yes             No

        Hardware &             Yes             No
    Platform Dependent
        Installation     Must be Installed   URL link

         Updates          Reinstallation     Simple
Why BlackBerry WebWorks ?




 BlackBerry WebWorks is an application platform that enables developers
 to create standalone applications using modern and standardized web
 technologies.

 WebWorks applications can be fully-featured “Super Apps” through their
 ability to integrate with native BlackBerry and PlayBook features.
Why BlackBerry WebWorks ?
 The richness of device access and reuse of assets .
 The simplicity of the browser programming model.
 It’s a diverse world out there for developers!
 Strong Web standards offer support across multiple platforms
     Reuse Web assets and developer skills to create BlackBerry apps
 Each platform seeing growth in access to native functionality
     Access the richness and differentiators of each platform
 BlackBerry WebWorks applications are supported on

                          All BlackBerry PlayBook
                          All BlackBerry 6 onwards including BlackBerry 10
                          More than 60 Million Users
What Can a WebWorks App Do?
Live vs. Local Web Content

 A WebWorks application does not need an active network connection
       Created using Web technologies, but designed to function offline

 Web assets of your application can be local:

              <a href="local:///index.html">Home</a>
      <a href="file:///accounts/1000/shared/camera/IMG_01.jpg">
                        Camera Pic</a>

 Can also use live resources to populate content dynamically

          <img src="http://www.mysite.com/image1.png"/>
How to build BlackBerry WebWorks Applications?


                            1. Create your application web files.

                            1. Test and debug your application with the
                               Ripple emulator.

                            2. Create a BlackBerry WebWorks configuration
                               document (config.xml)

                            1. Package your application using the Ripple
                               emulator.

                            1. Deploy your application to a BlackBerry device
                               or simulator.
Let’s Build a WebWorks Application

Target: BlackBerry Smartphone
Dev environment setup
     Required to package WebWorks file assets into a BlackBerry application
     BlackBerry WebWorks SDK for Smartphone
             Java SDK 1.6
             BlackBerry WebWorks SDK
             Optional: BlackBerry Smartphone simulator (Windows Only)


    Step 1 . Download and Setup Java SDK (min version 1.6):
    http://java.sun.com/javase/downloads/index.jsp#jdk

    Step 2. Download and Setup the BlackBerry WebWorks SDK for
    Smartphone:
    http://developer.blackberry.com/html5/download/sdk

    Step 3. Download and Setup Ripple (Standalone)
     http://developer.blackberry.com/html5
Hello World
  my first app
1. Start Writing Code: Landing page
   Open your favorite text editor

   Create a new file named index.html

   Add the following HTML content to this file:

<html>

  <head>
     <style type="text/css">
           body { font-size: 5em; }
     </style>
 </head>
 <body>
 <p> Hello World </p>
 </body>
</html>
2. Start Writing Code: Icon


 ① Create a home screen icon named icon.png
    Recommended dimensions: 92 x 92 pixels
    Recommended file format: PNG

 ② Use existing assets:
    Re-use images from your own Web site
    Royalty free images online

 ③ Create your own icon
    http://www.orison.biz/apps/playbook-icon-maker/
    Image authoring tools (e.g. PhotoShop, GIMP)
3. Start Writing Code: Config
  Create a second file named config.xml

  Add the following XML content to this file:

 <?xml version="1.0" encoding="UTF-8"?>

 <widget xmlns="http://www.w3.org/ns/widgets"

       xmlns:rim="http://www.blackberry.com/ns/widgets"

       version="1.0.0.0">
   <name>Hello World</name>

  <icon src="icon.png"/>

 <content src="index.html"/>
 </widget>
4. Configuration Document (config.xml)

 XML document based on W3C spec

     http://www.w3.org/TR/widgets/#configuration-document0

 Used to define system properties and application permissions

     Application name, description, version and icon
     Maintains a list of domain and feature permissions

 See “Code sample: Creating a BlackBerry WebWorks configuration
  document” for full details

     http://bit.ly/fdOiO6
4. Configuration Document (config.xml)

 Define visual characteristics for your application


<?xml version="1.0" encoding="UTF-8"?>

<widget xmlns="http://www.w3.org/ns/widgets" version="1.0.0.0">

    <name>helloWorld</name>

    <icon src="icon.png"/>

    <content src="index.html"/>

</widget>
5. Start Writing Code: Folders

 Keeping your application files organized and well structured.

         No IDEs or project files

 Steps:

1.   Create folder C:sandboxweb apps

1.   Create folder C:sandboxweb appshelloWorld

1.   Save index.html and config.xml in the helloWorld folder
6. Ripple! : Packaging & Emulating
             Launch Ripple : Select ‘WebWorks-OS’
              platform

             Configure Settings

     SDK Path: Bbwp installer root directory

 Project Root: Application Source Code

     Archive Name

     Output Folder

     Different than project root.
6. Ripple! : Packaging & Emulating
 Build Using Ripple : Open options Menu

         Package

         Package & Sign

         Package & Launch
Thank you.

More Related Content

PDF
RIM Casual Meetup - Bandung #DevIDBdg
PDF
Cordova 3, apps para android
PDF
QNX, C/C++, Qt, Cascades, HTML5… So what’s now BlackBerry 10 application deve...
PPT
Training on webwroks1
PDF
Sg conference multiplatform_apps_adam_stanley
PDF
Sencha touchonbb10 bootcamp
PDF
Building a Next Generation Mobile Browser using Web technologies
PPTX
Html5 features: location, history and offline apps
RIM Casual Meetup - Bandung #DevIDBdg
Cordova 3, apps para android
QNX, C/C++, Qt, Cascades, HTML5… So what’s now BlackBerry 10 application deve...
Training on webwroks1
Sg conference multiplatform_apps_adam_stanley
Sencha touchonbb10 bootcamp
Building a Next Generation Mobile Browser using Web technologies
Html5 features: location, history and offline apps

What's hot (19)

ODP
JMP102 Extending Your App Arsenal With OpenSocial
PDF
Building cross platform web apps
ODP
JMP103 : Extending Your App Arsenal With OpenSocial
ODP
PDF
Cordova: APIs and instruments
PDF
DEV-1430 IBM Connections Integration
PDF
Presentation JavaFX
PPTX
Presentation JavaFX
PPTX
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
PPTX
JavaScript on HP webOS: Enyo and Node.js
PPTX
JavaFX on Mobile (by Johan Vos)
PDF
The future of web development write once, run everywhere with angular js an...
PDF
Continuous Integration With Jenkins
PPTX
02 configuration
PDF
HTML5 Comprehensive Guide
PDF
Mobile Web Development with HTML5
PPTX
Boston Bluemix Meetup 5/15/14
PPTX
HTML5 WebWorks
PPTX
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
JMP102 Extending Your App Arsenal With OpenSocial
Building cross platform web apps
JMP103 : Extending Your App Arsenal With OpenSocial
Cordova: APIs and instruments
DEV-1430 IBM Connections Integration
Presentation JavaFX
Presentation JavaFX
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
JavaScript on HP webOS: Enyo and Node.js
JavaFX on Mobile (by Johan Vos)
The future of web development write once, run everywhere with angular js an...
Continuous Integration With Jenkins
02 configuration
HTML5 Comprehensive Guide
Mobile Web Development with HTML5
Boston Bluemix Meetup 5/15/14
HTML5 WebWorks
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Ad

Viewers also liked (20)

PPTX
new zealand
PDF
Dynamic Response Analysis of Automatic Generation Control in a 2-Area (Reheat...
PDF
Bg31189192
PDF
Bb31166168
PDF
From Hero to Zero - DevOpsDays Boston
PDF
Dx31599603
PDF
Signal Processing Algorithm of Space Time Coded Waveforms for Coherent MIMO R...
PDF
Ijmer 46050106
PDF
Dt2645164520
PDF
Swuni2012 cyberdoc
PDF
Ijmer 46066571
PDF
Receiver Module of Smart power monitoring and metering distribution system u...
PDF
Dr2645024509
PDF
An Overview of Clearance Optimization in Sheet Metal Blanking Process
PDF
H0409 05 5660
PDF
Personalization of the Web Search
PDF
Geological and Geotechnical Parameters Controlling Wall Paints Detachment at...
PPTX
Unplanned startup launch: Product Hunt vs Fast Company vs Gizmodo. Source eff...
PDF
Detection of Stall Region during Testing of Compressor
PDF
new zealand
Dynamic Response Analysis of Automatic Generation Control in a 2-Area (Reheat...
Bg31189192
Bb31166168
From Hero to Zero - DevOpsDays Boston
Dx31599603
Signal Processing Algorithm of Space Time Coded Waveforms for Coherent MIMO R...
Ijmer 46050106
Dt2645164520
Swuni2012 cyberdoc
Ijmer 46066571
Receiver Module of Smart power monitoring and metering distribution system u...
Dr2645024509
An Overview of Clearance Optimization in Sheet Metal Blanking Process
H0409 05 5660
Personalization of the Web Search
Geological and Geotechnical Parameters Controlling Wall Paints Detachment at...
Unplanned startup launch: Product Hunt vs Fast Company vs Gizmodo. Source eff...
Detection of Stall Region during Testing of Compressor
Ad

Similar to BlackBerry WebWorks (20)

PDF
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
PDF
WebWorks Development for BlackBerry PlayBook and Smartphones
PDF
Web works presso
PPTX
BlackBerry WebWorks
PDF
Modernizing .NET Apps with Docker
PPTX
Lightning Web Component - LWC
PPT
Phonegap android
PDF
Widgets neil
PPTX
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
PPT
Silver Light for every one by Subodh
PDF
Mobile Hybrid Development with WordPress
PDF
GeneralMobile Hybrid Development with WordPress
PDF
Apache cordova
PDF
BEF2013 - Toronto - Dev Track 2 - Migrating Apps to BlackBerry 10
PPT
BB10 Leading Mobile Web Platform W3C 2013
PDF
PhoneGap/Cordova
PPTX
[Devoxx Morocco 2015] Apache Cordova In Action
PDF
Chapter6 web apps-tomcat
PPTX
Cross-Platform Development using Angulr JS in Visual Studio
PDF
Sybase sup hybrid_web_container_article_wp
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
WebWorks Development for BlackBerry PlayBook and Smartphones
Web works presso
BlackBerry WebWorks
Modernizing .NET Apps with Docker
Lightning Web Component - LWC
Phonegap android
Widgets neil
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Silver Light for every one by Subodh
Mobile Hybrid Development with WordPress
GeneralMobile Hybrid Development with WordPress
Apache cordova
BEF2013 - Toronto - Dev Track 2 - Migrating Apps to BlackBerry 10
BB10 Leading Mobile Web Platform W3C 2013
PhoneGap/Cordova
[Devoxx Morocco 2015] Apache Cordova In Action
Chapter6 web apps-tomcat
Cross-Platform Development using Angulr JS in Visual Studio
Sybase sup hybrid_web_container_article_wp

Recently uploaded (20)

PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Getting Started with Data Integration: FME Form 101
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
August Patch Tuesday
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
SOPHOS-XG Firewall Administrator PPT.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
OMC Textile Division Presentation 2021.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A comparative analysis of optical character recognition models for extracting...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Network Security Unit 5.pdf for BCA BBA.
Univ-Connecticut-ChatGPT-Presentaion.pdf
Tartificialntelligence_presentation.pptx
Approach and Philosophy of On baking technology
Getting Started with Data Integration: FME Form 101
cloud_computing_Infrastucture_as_cloud_p
August Patch Tuesday
Group 1 Presentation -Planning and Decision Making .pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...

BlackBerry WebWorks

  • 1. Bhasker Thapan Developer Group Manager , Noida [email protected] October 10, 2012
  • 3. Topics Introduction : BlackBerry WebWorks HTML5 Web App Vs Native App Why BlackBerry WebWorks BlackBerry WebWorks App Development
  • 4. Introduction to BlackBerry WebWorks Mission…. To create, as a community, a simple to use cross platform SDK for Web Developers to package their Web assets as a mobile application which has Secure access to deeply integrated system level APIs.
  • 5. Using HTML5 In Your Application HTML5 is a standardized technology • Supported consistently across different platforms and engines • Enhancements to existing standard allow integration with platform See “HTML reference – BlackBerry browser” documentation • Complete list of BlackBerry supported HTML5 elements • http://bit.ly/aGFoub Many great HTML5 learning resources available online • http://diveintohtml5.org/ • http://html5demos.com • http://www.w3schools.com/html5/default.asp • http://www.html5test.com
  • 6. Web App Vs Native App Native App Web App Internet Access Not Required Required Performance Yes No Hardware Access Yes No OS Access Yes No Hardware & Yes No Platform Dependent Installation Must be Installed URL link Updates Reinstallation Simple
  • 7. Why BlackBerry WebWorks ? BlackBerry WebWorks is an application platform that enables developers to create standalone applications using modern and standardized web technologies. WebWorks applications can be fully-featured “Super Apps” through their ability to integrate with native BlackBerry and PlayBook features.
  • 8. Why BlackBerry WebWorks ?  The richness of device access and reuse of assets .  The simplicity of the browser programming model.  It’s a diverse world out there for developers!  Strong Web standards offer support across multiple platforms  Reuse Web assets and developer skills to create BlackBerry apps  Each platform seeing growth in access to native functionality  Access the richness and differentiators of each platform  BlackBerry WebWorks applications are supported on  All BlackBerry PlayBook  All BlackBerry 6 onwards including BlackBerry 10  More than 60 Million Users
  • 9. What Can a WebWorks App Do?
  • 10. Live vs. Local Web Content  A WebWorks application does not need an active network connection  Created using Web technologies, but designed to function offline  Web assets of your application can be local: <a href="local:///index.html">Home</a> <a href="file:///accounts/1000/shared/camera/IMG_01.jpg"> Camera Pic</a>  Can also use live resources to populate content dynamically <img src="http://www.mysite.com/image1.png"/>
  • 11. How to build BlackBerry WebWorks Applications? 1. Create your application web files. 1. Test and debug your application with the Ripple emulator. 2. Create a BlackBerry WebWorks configuration document (config.xml) 1. Package your application using the Ripple emulator. 1. Deploy your application to a BlackBerry device or simulator.
  • 12. Let’s Build a WebWorks Application Target: BlackBerry Smartphone
  • 13. Dev environment setup  Required to package WebWorks file assets into a BlackBerry application  BlackBerry WebWorks SDK for Smartphone  Java SDK 1.6  BlackBerry WebWorks SDK  Optional: BlackBerry Smartphone simulator (Windows Only) Step 1 . Download and Setup Java SDK (min version 1.6): http://java.sun.com/javase/downloads/index.jsp#jdk Step 2. Download and Setup the BlackBerry WebWorks SDK for Smartphone: http://developer.blackberry.com/html5/download/sdk Step 3. Download and Setup Ripple (Standalone)  http://developer.blackberry.com/html5
  • 14. Hello World my first app
  • 15. 1. Start Writing Code: Landing page Open your favorite text editor Create a new file named index.html Add the following HTML content to this file: <html> <head> <style type="text/css"> body { font-size: 5em; } </style> </head> <body> <p> Hello World </p> </body> </html>
  • 16. 2. Start Writing Code: Icon ① Create a home screen icon named icon.png  Recommended dimensions: 92 x 92 pixels  Recommended file format: PNG ② Use existing assets:  Re-use images from your own Web site  Royalty free images online ③ Create your own icon  http://www.orison.biz/apps/playbook-icon-maker/  Image authoring tools (e.g. PhotoShop, GIMP)
  • 17. 3. Start Writing Code: Config  Create a second file named config.xml  Add the following XML content to this file: <?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0"> <name>Hello World</name> <icon src="icon.png"/> <content src="index.html"/> </widget>
  • 18. 4. Configuration Document (config.xml)  XML document based on W3C spec  http://www.w3.org/TR/widgets/#configuration-document0  Used to define system properties and application permissions  Application name, description, version and icon  Maintains a list of domain and feature permissions  See “Code sample: Creating a BlackBerry WebWorks configuration document” for full details  http://bit.ly/fdOiO6
  • 19. 4. Configuration Document (config.xml)  Define visual characteristics for your application <?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" version="1.0.0.0"> <name>helloWorld</name> <icon src="icon.png"/> <content src="index.html"/> </widget>
  • 20. 5. Start Writing Code: Folders  Keeping your application files organized and well structured.  No IDEs or project files  Steps: 1. Create folder C:sandboxweb apps 1. Create folder C:sandboxweb appshelloWorld 1. Save index.html and config.xml in the helloWorld folder
  • 21. 6. Ripple! : Packaging & Emulating  Launch Ripple : Select ‘WebWorks-OS’ platform  Configure Settings  SDK Path: Bbwp installer root directory  Project Root: Application Source Code  Archive Name  Output Folder  Different than project root.
  • 22. 6. Ripple! : Packaging & Emulating  Build Using Ripple : Open options Menu  Package  Package & Sign  Package & Launch