Introduction to BlackBerry Smartphone Web Development - Optimizing Web Content for Mobile Device Browsers Trainer name Date V1.00 © 2009 Research In Motion.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
Chapter 6 Preparing and Publishing Applications. Chapter 6 Lessons 1.Publish movies 2.Reduce file size to optimize a movie 3.Create a preloader 4.Publish.
Chapter 17 Creating Images for the Web. Chapter Lessons Learn about Web features Optimize images for Web use Create a button for a Web page Create slices.
Introduction to push technology © 2009 Research In Motion Limited.
V1.00 © 2009 Research In Motion Limited Introduction to BlackBerry Smartphone Web Development—The BlackBerry Infrastructure Trainer name Date.
Project 1 Introduction to HTML.
© 2009 Research In Motion Limited Methods of application development for mobile devices.
© 2009 Research In Motion Limited BlackBerry themes and animated graphics.
V1.00 © 2009 Research In Motion Limited Introduction to Mobile Device Web Development Trainer name Date.
Web Clipping Presentation By: Alex Jacobs, Philip Kim, Nathan Po Web Clipping.
Chapter 4 Adding Images. Inserting and Aligning Images Using CSS When you choose graphics to add to a web page, it’s important to use graphic files in.
Chapter 1 Understanding the Web Design Environment
V0.01 © 2009 Research In Motion Limited Push technology for Java applications Trainer name Date.
Developing a Basic Web Page with HTML
Dreamweaver 8 Concepts and Techniques Introduction Web Site Development and Macromedia Dreamweaver 8.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Chapter 14 Introduction to HTML
Web Design Basic Concepts.
Chapter 1 Variables in the Web Design Environment.
Chapter 1 Variables in the Web Design Environment
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
An Introduction to WAP/WML. What is WAP? WAP stands for Wireless Application Protocol. WAP is for handheld devices such as mobile phones. WAP is designed.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computer Concepts 2014 Chapter 7 The Web and .
1 Networks and the Internet A network is a structure linking computers together for the purpose of sharing resources such as printers and files Users typically.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Designing for the Unknown. Challenges of Web Design As frustrating as it may be – there is no guarantee that people will see/experience your web pages.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
The Internet 8th Edition Tutorial 9 Creating Effective Web Pages.
Introduction to BlackBerry Smartphone Web Development —Introduction to Browser Push Trainer name Date V1.00 © 2009 Research In Motion Limited.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
The Internet and the World Wide Web. The Internet A Network is a collection of computers and devices that are connected together. The Internet is a worldwide.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Introduction to HTML Tutorial 1 eXtensible Markup Language (XML)
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government.
Web Design and Development for E-Business By Jensen J. Zhao Copyright 2003 Prentice Hall, Inc. Web Design and Development for E-Business Jensen J. Zhao.
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Adding Images Learning Web Design: Chapter 7. Using an Image Images have many purposed on a Web site Used as a static image To add illustration: ex. A.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
WWW Programming Model. WWW Model The Internet WWW architecture provides a flexible and powerful programming model. Applications and content are presented.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
Adobe Flash Professional CS5 – Illustrated Unit E: Optimizing and Publishing a Movie.
1 MIT 5316 Web-Based Computing Lecture 1. 2 Welcome Introduction Syllabus.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Enhance Your Page Load Speed And Improve Traffic.
Section 8.1 Section 8.2 Create a custom theme Design a color scheme
Objective % Select and utilize tools to design and develop websites.
Chapter 1 Introduction to HTML.
Basic Knowledge of Web creation
Project 1 Introduction to HTML.
Chapter 3 Image Files © 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Objective % Select and utilize tools to design and develop websites.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Web Design Designing for the Unknown.
Lesson 5: Multimedia on the Web
Presentation transcript:

Introduction to BlackBerry Smartphone Web Development - Optimizing Web Content for Mobile Device Browsers Trainer name Date V1.00 © 2009 Research In Motion Limited

Agenda In this course, you will cover the following topics: –Introduction to Mobile Device web development –Web development tools for mobile devices –The BlackBerry ® Infrastructure –Optimizing Web Content for Mobile Device Browsers –Introduction to Browser Push –Widgets

Introduction to BlackBerry Smartphone web development Objectives –Describe techniques for designing efficient web content –Describe how to use the profiler tool in the BlackBerry Web Plug-in to find bottlenecks in web content –Describe the use of offline form queuing –Describe how the BlackBerry MDS Connection Service and the BlackBerry Internet Service Browsing network gateways use optimization techniques

© 2009 Research In Motion Limited Content optimization and delivery

Principles of web design Design recommendations for web sites: –Understand your audience –Create an appropriate site hierarchy –Provide useful links Include a link to Home page on each page Include links to other related web pages Categorize and group links Provide a clear label for each link

Organize content effectively Consider the following guidelines when planning your web site: –Deliver related content on as few pages as possible –Make links to related content easily accessible –Design an effective layout –Create logical blocks of information –Use cascading style sheets –Provide clear entry points © 2009 Research In Motion Limited

Organize content effectively –Create separate files for content, presentation, and interaction components –Avoid inline or internal styles –Consider BlackBerry® smartphone screen size BlackBerry smartphone browsers display 12 to18 lines of text with 28 to 35 characters on each line. Mobile phones browsers display 4 to 7 lines of text with 10 to 15 characters on each line.

Advantages of markup languages HTML/XHTMLWMLSVG You can migrate HTML to XHTML much more easily than to WML Most users of wireless web sites are accustomed to WML Enables content developers to add movement and sound to their content XHTML supports greater layout versatility than WML Currently the most widely used markup language for wireless web applications Offers dynamic layout and presentation support © 2009 Research In Motion Limited HTML Hypertext Markup Language XHTML Extensible Hypertext Markup Language DTD Document Type Definition WMLScript Wireless Markup Language Script

Advantages of markup languages HTML/XHTMLWMLSVG Functionality can be extended considerably using JavaScript® Has a well- maintained DTD and is well documented and supported Automatically transcoded to PME format by BlackBerry MDS Connection Service or BlackBerry Internet Service XHTML has greater potential for future use (becoming the standard) Functionality can be extended using WMLScript ─ PME Plazmic Media Engine

Disadvantages of markup languages XHTML/HTMLWMLSVG Usually larger than WML content, so it can take longer to display Supports only basic page layout; best suited to very basic sites SVG is not supported by the browser directly; it must be transcoded to PME format (either by BlackBerry MDS Connection Service or BlackBerry Internet Service Browsing, or by the content developer) Few XHTML resources are currently available WMLScript is much less robust than JavaScript Takes longer to download than other formats © 2009 Research In Motion Limited WML Wireless Markup Language SVG Scalable Vector Graphics

Use meta values Control the presentation of content using meta values: In HTML code, you can use the element. The BlackBerry Browser supports the HandheldFriendly and viewport meta values. –The HandheldFriendly value informs the BlackBerry Browser that the content contained within the document is designed for small screens. –The viewport definition allows you to specify the specific dimensions of the intended viewport.

Create adaptable content Create content that is adaptable to all BlackBerry devices: –Support multiple screen resolutions and sizes. –Support the different input and navigation methods available. –Use CSS styles to control presentation. –Create pages that can resize properly when the orientation changes on a BlackBerry device that has a touchscreen. –Detect device information.

Encourage text entry –BlackBerry smartphone users can use the keyboard to type text into web forms. –The browser supports both and elements in HTML, and in WML. © 2009 Research In Motion Limited

Minimize download time Download time is affected by three factors: –Content size –Wireless network –Protocol characteristics Reduce the size of the web page Avoid unnecessary content and images Use scripting techniques to progressively render a page Push content proactively © 2009 Research In Motion Limited

Improve rendering time –Create content using WML where possible as it renders more quickly than HTML or XHTML content. –Process and filter content at an intermediate server between the web server and the BlackBerry smartphone. –The BlackBerry MDS Connection Service and the BlackBerry Internet Service Browsing speed up rendering times by filtering out unsupported elements and converting content into a format the browser can display efficiently. © 2009 Research In Motion Limited

Create effective images –Do not antialias fonts saved as images –Redraw images when resizing them to fit smaller screens –Save images in monochrome format for display on monochrome BlackBerry smartphones –Use images only when necessary © 2009 Research In Motion Limited

Create effective monochrome images The following pair of images display well because they are monochrome: © 2009 Research In Motion Limited

Create effective monochrome images The following images display poorly because of feathered edges and blurred colours. Convert an image to monochrome using Adobe® Photoshop® version 6.0. Convert your image to a bitmap using the 50% threshold method. You may need to discard any color information by converting the image to grayscale. © 2009 Research In Motion Limited

Create effective monochrome images Gradients display clearly on the BlackBerry smartphone screen, but they are less effective on a smaller scale. © 2009 Research In Motion Limited

BlackBerry Web Plug-in profiler tool © 2009 Research In Motion Limited

Optimize source code The profiler tool is available in the BlackBerry ® Web Plug-in for Eclipse, and the BlackBerry ® Web Plug-in for Microsoft ® Visual Studio ®. Use the profiler tool to do the following: –Optimize source code –Isolate and address coding bottlenecks –Profile the efficiency of code sections by setting a breakpoint at the start and end of the section of code to profile © 2009 Research In Motion Limited

Optimize source code Start a debugging session with the BlackBerry smartphone Simulator and view the following information about the code: –the contents of XMLHttpRequest requests and response data –data traffic for web-based content, including elements such as images, CSS, JavaScript, HTML and Objects –reporting on the time to load for web-based content, including elements such as images, CSS, JavaScript, HTML and Objects © 2009 Research In Motion Limited

Defining queues for offline for submission

Defining queues for offline form submission –Defining form-submission queues permits BlackBerry smartphone users to complete and submit forms and continue browsing without waiting for the form to be submitted. –The browser continuously processes any queued forms and submits the forms in the background. –If the BlackBerry smartphone is outside a wireless coverage area, users can still fill in and submit several forms (possibly for different queues). The browser queues the form requests and submits them when the BlackBerry smartphone is back in coverage. © 2009 Research In Motion Limited

Defining queues for offline form submission The following HTTP headers allow you to create a form queue: © 2009 Research In Motion Limited ParameterDescription x-rim-queue-idSpecifies Offline Form Queue to which any GET or POST requests from form submissions on this page should go. The value may be any text string. x-rim-next-targetSpecifies the next page to load after sending any GET or POST requests resulting from this page to Offline Form Queue. The value may be any valid web address. x-rim-requesttitleSpecifies the label used to identify this request in the Queue view page. The value may be any text string.

Defining queues for offline form submission The following HTTP headers allow you to create a form queue (cont): © 2009 Research In Motion Limited ParameterDescription x-rim-request-idSpecifies whether the browser generates a unique ID and adds it as an HTTP header for every offline request resulting from this page. The value may be a boolean. x-rim-request-dateSpecifies whether the browser generates a time stamp and adds it as an HTTP header to every offline request resulting from this page. The value may be a boolean.

Optimization using BlackBerry MDS Connection Service and BlackBerry Internet Service Browsing network gateways © 2009 Research In Motion Limited

Optimize web content using network gateways BlackBerry MDS Connection Service and BlackBerry Internet Service Browsing network gateways are designed to deliver content to the BlackBerry® Browser. To help maximize efficiency and minimize the bandwidth requirements of content that is sent over the wireless network, these network gateways use optimization techniques unique to the BlackBerry ® Infrastructure. © 2009 Research In Motion Limited

Optimize web content using network gateways BlackBerry MDS Connection Service and the BlackBerry Internet Service Browsing network gateways optimize content in the following ways: –By reading the existing content in the BlackBerry Browser cache to determine if the requested content is already stored on the BlackBerry smartphone –By preprocessing requested content and filtering out unsupported or unnecessary markup or resources –By converting images into an appropriate format for display on the BlackBerry smartphone © 2009 Research In Motion Limited

Content transcoding BlackBerry MDS Connection Service and BlackBerry Internet Service Browsing network gateways transcode data into formats that are more suitable for sending over the wireless network and for rendering in the BlackBerry Browser. © 2009 Research In Motion Limited MDS Mobile Data System

Transcoding markup languages Markup languages are transcoded in the following ways: –HTML and XHTML are simplified and transcoded into a format similar to WBXML. –WML is transcoded into WMLC. –SVG is transcoded into PME, a proprietary binary file format that BlackBerry smartphones can render. © 2009 Research In Motion Limited WBXML WAP Binary Extensible Markup Language WMLC Wireless Markup Language Compiled

Transcoding scripts, images, and Java applications –JavaScript (internal or external) is transcoded into JavaScript bytecode. –WMLScript is transcoded into compiled WMLScript. –All.gif files are transcoded into PNG file format. –If the BlackBerry smartphone does not support native JPG files, JPG files are converted to PNG file format. –JAR files are converted into COD file format. © 2009 Research In Motion Limited PNG Portable Network Graphics JAR Java Archive JPEG Joint Photographic Experts Group COD Code

Content preprocessing and filtering –BlackBerry network gateways check the content type that a BlackBerry smartphone supports based on the version of the BlackBerry® Device Software that the BlackBerry smartphone is running. –The network gateway preprocesses the HTML, removes any unsupported elements or attributes, and sends the HTML to the BlackBerry smartphone as it is processed. –The network gateway retrieves any images from the content server while it preprocesses the HTML. © 2009 Research In Motion Limited

Content preprocessing and filtering –The network gateway reads the browser configuration settings on the BlackBerry smartphone to check if the user has turned off support for markup. –If support for a resource is turned off, the network gateway does not retrieve the resource and does not send it over the wireless network to the BlackBerry smartphone (to minimize the use of bandwidth). © 2009 Research In Motion Limited

Image optimization –Network gateways check the physical characteristics of the destination BlackBerry smartphone, and scale the image and reduce the color depth as appropriate. –To reduce the use of bandwidth and improve display, the network gateway scales images proportionally with the content and maintains aspect ratio. © 2009 Research In Motion Limited

Image optimization –Network gateways reduce the color depth of the image to match the number of colors that the destination BlackBerry smartphone supports, resulting in smaller file sizes and minimizing bandwidth. © 2009 Research In Motion Limited

Enhanced image optimization –Enhanced image optimization is designed to provide an additional 15 to 20% size reduction. –Higher quality images can be sent to the BlackBerry smartphone without an increase in the use of bandwidth. –Enhanced image optimization applies only to GIF, PNG, and JPEG image formats. © 2009 Research In Motion Limited GIF Graphics Interchange Format

Progressive downloading of images –When the network gateway compresses an image, it divides the file into segments and sends the file segments to the BlackBerry Browser incrementally. –As the web page is rendered in the BlackBerry Browser, low quality placeholder versions of the images are rendered quickly. –After the entire page is rendered, the browser receives the additional image file segments. As these segments arrive, the placeholder images are enhanced until the images meet the image quality specified by the user. © 2009 Research In Motion Limited

Summary

To optimize web content for mobile device browsers: –Organize your content, choose an appropriate markup language, create effective images, and minimize the need for backward navigation. –Use the BlackBerry IDE profiler tool to find bottlenecks in web content and define queues for offline form submission. © 2009 Research In Motion Limited

Summary The BlackBerry MDS Connection Service and the BlackBerry Internet Service Browsing network gateways optimize content by: –Reading the existing content in the BlackBerry Browser cache to determine if requested content is already stored on the device –Preprocessing requested content and filtering out unsupported or unnecessary markup or resources –Converting images into an appropriate format for display on the BlackBerry smartphone © 2009 Research In Motion Limited