V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

JustinMind: Dynamic Panels
V0.1 Inclusive and Accessible Application Design June 21, 2012.
Introduction to push technology © 2009 Research In Motion Limited.
UNDERSTANDING JAVA APIS FOR MOBILE DEVICES v0.01.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
© 2009 Research In Motion Limited Methods of application development for mobile devices.
© 2009 Research In Motion Limited Data structures and memory management on mobile devices.
Exploring the Basics of Windows XP. Objectives Start Windows XP and tour the desktop Explore the Start menu Run software programs, switch between them,
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
V0.01 © 2009 Research In Motion Limited Understanding Java APIs for Mobile Devices Trainer name Date.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
V1.00 © 2009 Research In Motion Limited Introduction to Mobile Device Web Development Trainer name Date.
Introduction To Form Builder
© 2009 Research In Motion Limited User interface design for mobile devices.
© 2009 Research In Motion Limited Introduction to developing applications for mobile devices.
V0.01 © 2009 Research In Motion Limited Push technology for Java applications Trainer name Date.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Applications Software
Exploring the Basics of Windows XP
Module 3 Productivity Programs Common Features and Commands Microsoft Office 2007.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
PROG Mobile Java Application Development PROG Mobile Java Application Development Event Handling Creating Menus.
Microsoft Visual Basic 2005: Reloaded Second Edition
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Creating a Presentation
Ansys Workbench 1 Introduction
Designing a Graphical User Interface (GUI) Krisana Chinnasarn, Ph.D. January 2007.
IE 411/511: Visual Programming for Industrial Applications
V0.1 BlackBerry HTML5/WebWorks Applications for the BlackBerry ® PlayBook™ Tablet BlackBerry Academic Program Module 5 - Writing HTML5/WebWorks API Extensions.
Java Software Solutions Lewis and Loftus Chapter 10 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphical User Interfaces --
Java Programming: From Problem Analysis to Program Design, 4e Chapter 12 Advanced GUIs and Graphics.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
PROG Mobile Java Application Development PROG Mobile Java Application Development BlackBerry API for UI Applications.
SUSE Linux Enterprise Desktop Administration Chapter 2 Use the Linux Desktop.
PROG Mobile Java Application Development PROG Mobile Java Application Development BlackBerry App Lifecycle Java ME API.
Designing Interface Components. Components Navigation components - the user uses these components to give instructions. Input – Components that are used.
XP New Perspectives on Windows XP Tutorial 1 Exploring the Basics.
CHAPTER TEN AUTHORING.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
GUI Components Part I. Overview UiApplication Class MainScreen Class BitmapField Class ButtonField Class CheckboxField Class Dialog Class EditField Class.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Adobe Flash CS4 – Illustrated Unit A: Getting Started with Adobe Flash.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
By Felixberto Dominic B. Eruela.  Using a computer to create, edit, and print documents. Of all computer applications, word processing is the most common.
User Interface Components Lecture # 5 From: interface-elements.html.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
PhotoShop Creative Suite 3 Chapter 1 The Work Area.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
An Introduction to Computers and Visual Basic
Chap 7. Building Java Graphical User Interfaces
Graphical User Interfaces -- Introduction
Chapter 2 – Introduction to the Visual Studio .NET IDE
Windows xp PART 1 DR.WAFAA SHRIEF.
Exploring the Basics of Windows XP
An Introduction to Computers and Visual Basic
Presentation transcript:

v0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date

© 2009 Research In Motion Limited Revision history Document versionDateUpdated byDescription of revision 0.1Angela-Jo GriffinInitial content creation

© 2009 Research In Motion Limited Agenda In this course, you will cover the following topics: –Introduction to Java® application development for mobile devices –Understanding Java APIs for mobile devices –Developing a user interface for mobile devices –Push technology for Java applications –Introduction to threading and background processing –Network communication for mobile devices –Testing and debugging an application API application programming interface

© 2009 Research In Motion Limited Developing a user interface for mobile devices

© 2009 Research In Motion Limited Developing a user interface for mobile devices Objectives –Describe MIDP –Describe the BlackBerry® CLDC application –Explain the best practices for successful mobile device UIs –List and explain the components of the BlackBerry® smartphone UI CLDCConnected Limited Device Configuration MIDPMobile Information Device Profile UIuser interface

© 2009 Research In Motion Limited Developing a user interface for mobile devices Objectives –Explain how to create a basic UI for a mobile application for a mobile device such as a BlackBerry smartphone –Describe how to evaluate a mobile device UI

© 2009 Research In Motion Limited Introduction to the BlackBerry smartphone user interface

© 2009 Research In Motion Limited Introduction to the BlackBerry smartphone user interface The main structure for a BlackBerry smartphone UI is the Screen object. Select your UI APIs according to the type of application you want to create. –For a BlackBerry Java Application, use the BlackBerry UI APIs. –To use MIDlets, use the MIDP UI APIs. JVMJava® Virtual Machine

© 2009 Research In Motion Limited Introduction to the BlackBerry smartphone user interface BlackBerry applications –A BlackBerry® Application is an application that uses the BlackBerry APIs, as well as the CLDC APIs and possibly the MIDP APIs. –A BlackBerry API application extends the UiApplication class and starts with a standard main() method.

Introduction to the BlackBerry smartphone user interface Advantages of using the BlackBerry APIs –BlackBerry UI APIs provide more functionality and flexibility than the standard javax.microedition.lcdui APIs that you use to create MIDlets. –Applications can run background threads after the application closes. –Applications can start automatically in the background when the device turns on. –Applications can use IPC APIs to exchange information with other applications. –Developers can create library modules that BlackBerry API applications can import. IPCinterprocess communication

Introduction to the BlackBerry smartphone user interface Advantages of using the BlackBerry APIs –Applications can access trackball and trackwheel events. –Applications can access touch screen events on a BlackBerry smartphone with a touch screen. –Applications can use data from the accelerometer on a BlackBerry device. –Applications can integrate with BlackBerry® Browser, BlackBerry® Maps, and other applications. –Applications can change the icon that displays on the Home screen on a BlackBerry smartphone.

Introduction to the BlackBerry smartphone user interface Disadvantages of using the BlackBerry APIs: –BlackBerry API applications can run only on a BlackBerry smartphone.

© 2009 Research In Motion Limited Best practices for successful mobile device UIs

© 2009 Research In Motion Limited Best practices for successful mobile device UIs Limitations of mobile devices –small screen size –slow processor speeds –wireless networks have a longer latency period than standard LANs –small amount of available memory –short battery life –display one screen at a time

© 2009 Research In Motion Limited Best practices for successful mobile device UIs Best practice guidelines –Use or extend existing UI components where possible –Follow the standard navigation model –Support and extend user tasks in useful ways –Stay focused on users' immediate task –Verify that available menu actions are relevant –Minimize steps to complete tasks

© 2009 Research In Motion Limited Best practices for successful mobile device UIs Best practice guidelines –Allow users to undo commands –Make effective use of the small screen

© 2009 Research In Motion Limited Components of the BlackBerry smartphone UI

The BlackBerry UI is a three-level hierarchy. –Screen class net.rim.device.api.ui.Screen –Manager class net.rim.device.api.ui.Manager –Field class net.rim.device.api.ui.component

Components of the BlackBerry smartphone UI –The Screen class provides Standard screen layout Default menu Standard behavior for user input –The BlackBerry smartphone displays screens One at a time By pushing and popping them off of the display stack

Components of the BlackBerry smartphone UI –The Manager class provides the ability to arrange components on a BlackBerry smartphone screen in standard ways. –A manager specifies Location and layout of fields it contains Scrolling Focus change between fields –Every screen must contain at least one manager.

Components of the BlackBerry smartphone UI –The Field class provides the fundamental functionality for all field components. –A field is a rectangular region that displays output to a user. –A field can also handle input. –Field components provide standard UI elements for date selection, options, check boxes, lists, text fields, labels, and progress bar controls.

© 2009 Research In Motion Limited Screens

Screen objects: –The Screen object is the main structure for a BlackBerry smartphone UI. –The UI APIs initialize simple Screen objects. –You can add fields and a menu to a screen. –Display the screen by pushing it on to the UI stack.

Screens To create a screen, do the following: 1.Import the following classes net.rim.device.api.ui.Screen net.rim.device.api.ui.container.FullScreen net.rim.device.api.ui.container.MainScreen 2.Extend the Screen class or one of its subclasses, FullScreen or MainScreen.

Screens Other screen considerations include: –Application screens –Dialog boxes –Progress indicators –Menus

Screens Application screen: –The BlackBerry smartphone can have multiple applications open at once, but users can only view one screen at a time. –If multiple screens are open, the BlackBerry smartphone organizes the screens in a stack. –The screen at the top of the stack is the active screen.

Screens Application screen elements: –The title bar appears at the top of the screen. –Scroll bars allow users to view content that extends beyond the viewing area. –The context menu contains a list of available actions within the current context. –The full menu contains all the available actions for the application.

Screens Dialog boxes: –Prompt users for information that the application requires to complete a user-initiated task. –Inform users of urgent information or the status of important actions. –Warn users of unexpected or potentially destructive conditions or situations.

Screens Progress indicators: –Indicate the status of an operation Definite progress indicators—horizontal bar fills from left to right as an operation progresses. Indefinite progress indicators—use a message or graphic that does not indicate percent complete or time remaining.

Screens Menus: –The Application Menu Item API, in the net.rim.blackberry.api.menuitem package, allows you to add menu items to BlackBerry Java Applications. –The ApplicationMenuItemRepository class allows you to add or remove menu items from BlackBerry Java Applications.

Screens Menus: –You can create a Full menu, which includes all the actions that users can perform in the application Context menu, or short menu, which contains a list of the most common available actions that users can perform within the current context

© 2009 Research In Motion Limited Managers

Managers include: –HorizontalFieldManager –VerticalFieldManager –FlowFieldManager –DialogFieldManager

Managers HorizontalFieldManager : –Lays out fields from left to right in a single row –Can provide horizontal scrolling for fields that do not fit on the screen –Can provide vertical scrolling for fields that are taller than the screen

Managers VerticalFieldManager : –Lays out fields in a single vertical row –Can provide vertical scrolling for fields that do not fit on the screen –Can provide horizontal scrolling for fields that are wider than screen

Managers FlowFieldManager : –Lays out fields in a horizontal, then vertical flow. Fields are positioned from left to right –Places any fields that do not fit in the allotted horizontal space on the next line below, beginning from the left –Supports both horizontal and vertical scrolling

Managers DialogFieldManager : –Handles an icon, a message, and a special area, which can hold a list of user-specified custom fields. –Uses a VerticalFieldManager to lay out the fields in the user area. –A VerticalFieldManager lays out its icon in the top left corner, and its message label in the top left corner.

Managers Nested managers: –Managers are an extension of the Field class. –If you nest one manager into another manager, you can create various field layouts on the screen. –If you select managers that enable scrolling, you can also control how a user interacts with the fields on the screen.

© 2009 Research In Motion Limited Fields

Fields provide standard UI elements for controls: –Buttons –Check boxes –Drop-down lists –List boxes –Option buttons –Text fields –Search fields –Tree views

Fields Traditional field –Button –Check box –Date –Dialog box –Drop-down list BlackBerry field –ButtonField –CheckboxField –DateField –PopupScreen –NumericChoiceField or ObjectChoiceField

Fields Traditional field –Radio button –Text –Text label –List BlackBerry field –RadioButtonField –RichTextField, BasicEditField, EditField, PasswordEditField, or AutoTextEditField –LabelField –ListField

© 2009 Research In Motion Limited Drawing directly on the screen

Graphics class –There are two main areas where you can typically use the Graphics class: Field level Screen level –You can draw at the screen level to make use of animation or multimedia content in an application. © 2009 Research In Motion Limited

Drawing directly on the screen Graphics class –You perform the bulk of the work of the Graphics class in the paint method of the Field class. –A BlackBerry smartphone invokes the paint() method when a field, or part of the field, must be redrawn. –You can override the paint() method to create a custom field, or to modify an existing field. © 2009 Research In Motion Limited

Drawing directly on the screen Canvass class –To draw a circle or rectangle, extend the Canvas class and override its paint() method. © 2009 Research In Motion Limited

Drawing directly on the screen Drawing graphics within graphics –Vary the approach you take to create your graphics based on their usage pattern. –Create an image once and reuse it to save processing time. This approach is ideal for images that remain fairly constant. This approach is not optimal for highly dynamic content. © 2009 Research In Motion Limited

Evaluating a mobile device UI

© 2009 Research In Motion Limited Evaluating a mobile device UI –Review the best practices for designing applications for BlackBerry smartphones. –Preverify a BlackBerry Java Application with the Preverify tool. –Test applications on a BlackBerry Smartphone Simulator. –Test applications on a BlackBerry smartphone.

© 2009 Research In Motion Limited

Legal Disclaimer The following trademarks and/or registered trademarks of Research In Motion are referred to in this presentation: –BlackBerry® –Research In Motion® –RIM® The following BlackBerry products are referred to in this presentation: –BlackBerry® Enterprise Solution –BlackBerry® Enterprise Server The following third-party trademarks are referred to in this presentation: © 2009 Research In Motion Limited

Legal Disclaimer © 2009 Research In Motion Limited. All rights reserved. BlackBerry®, RIM®, Research In Motion®, SurePress™ SureType® and related trademarks, names and logos are the property of Research In Motion Limited and are registered and/or used in the U.S. and countries around the world. All other trademarks are the property of their respective owners. This documentation is provided "AS IS" and without condition, endorsement, guarantee, representation or warranty, or liability of any kind by Research In Motion Limited and its affiliated companies, all of which are expressly disclaimed to the maximum extent permitted by applicable law in your jurisdiction.