PowerPoint 1

Download Report

Transcript PowerPoint 1

Advanced Java Application
Development for the
BlackBerry Smartphone
Trainer name
Date
© 2009 Research In Motion Limited
Agenda
In this course, you will cover the following topics:
– Introduction to advanced mobile application
development for the BlackBerry smartphone
– Application control for mobile devices
– Optimization for mobile application development
– Advanced BlackBerry user interface
– Introduction to multimedia application development for
the BlackBerry smartphone
– Understanding push technology
© 2009 Research In Motion Limited
Agenda
In this course, you will cover the following topics:
– Understanding client/server push
– Introduction to developing Bluetooth applications for
mobile devices
– Developing secure applications
© 2009 Research In Motion Limited
Advanced Java Application Development for the BlackBerry
Smartphone
Objectives
– Discuss mobile application development for
BlackBerry® smartphones
– Describe advanced application design
considerations for BlackBerry smartphones
– Describe the function of the BlackBerry® Java Plugin for Eclipse®
© 2009 Research In Motion Limited
Advanced Java Application Development for the BlackBerry
Smartphone
Objectives
– Describe troubleshooting steps for BlackBerry
smartphone mobile applications
– Discuss deployment options for mobile applications
© 2009 Research In Motion Limited
Introduction to advanced mobile application
development for the BlackBerry smartphone
© 2009 Research In Motion Limited
What is advanced mobile application development?
– Advanced mobile application development
includes:
•
Advanced interfaces
•
Highly secure applications
•
Integration of Bluetooth® wireless technology
•
Server push technology
•
Client/server push technology
© 2009 Research In Motion Limited
What is advanced mobile application development?
– Advanced mobile application development
includes:
•
Application control
•
Code optimization
© 2009 Research In Motion Limited
What is advanced mobile application development?
All applications on the BlackBerry smartphones are created using
Java. BlackBerry smartphones support MIDP 2.0/CLDC1.1.
The Java APIs on BlackBerry smartphones enable you to develop
client applications that provide the following capabilities:
– Customizable user interfaces
– Local data storage on the BlackBerry smartphone
– Event listening and system interfaces
– Secure wireless transport via HTTP and TCP
– Network coverage and seamless roaming support
Advanced application design considerations
Programming for BlackBerry smartphones
– Java ME wireless environment supports
client/server applications
– BlackBerry Java Application integrates with core
BlackBerry smartphone applications
ME
© 2009 Research In Motion Limited
Micro Edition
Advanced application design considerations
Design principles for BlackBerry smartphones
– Mobile applications have the following limitations:
•
Small screen size
– Displays a limited number of characters
– Displays only one screen at a time
•
Limited processor speeds
© 2009 Research In Motion Limited
Advanced application design considerations
Design principles for BlackBerry smartphones
– Mobile applications have the following limitations:
•
Limited available memory
•
Limited battery life
•
Use wireless networks with a longer latency period
© 2009 Research In Motion Limited
Advanced application design considerations
Design principles for BlackBerry smartphones
– Consider the following UI guidelines:
•
Use or extend existing UI components
•
Make full use of the keyboard and trackball
•
Make all relevant actions available from the menu
UI
© 2009 Research In Motion Limited
user interface
Advanced application design considerations
Design principles for BlackBerry smartphones
– Consider the following application guidelines:
•
Display only the information users need
•
Display information effectively
© 2009 Research In Motion Limited
Advanced application design considerations
BlackBerry Java Plug-in for Eclipse
– BlackBerry Java Plug-in for Eclipse includes the
following development tools:
•
BlackBerry Integrated Development Environment
•
BlackBerry Smartphone Simulator
•
Java ME APIs and BlackBerry APIs sample
applications
•
Sample applications
API
© 2009 Research In Motion Limited
application program interface
Development tools
You can use the the following development
tools for development within third-party IDEs
such as NetBeans™ or Eclipse®:
– RAPC: Use this command prompt compiler to
compile .java files and .jar files into .cod files.
– Javaloader: Use this tool to add or update an
application on a BlackBerry smartphone.
– BlackBerry Signature Tool: Use this tool to
send code signature requests to the
BlackBerry® Signing Authority Tool.
– Preverify Tool: Use this tool to partially verify
your classes.
Development tools
You can use the following development tools for
development within third-party IDEs such as
NetBeans or Eclipse:
– JDWP: Use this tool to debug applications
using third-party integrated development
environments.
– MDS-CS Simulator: Use this tool to debug
applications using simulated mobile data
system connections.
– ESS: Use this tool to debug applications using
simulated email messages.
Advanced application design considerations
BlackBerry Java Plug-in for Eclipse
– The BlackBerry Smartphone Simulator is
designed to simulate:
•
User interfaces and user interaction
•
Network connections
•
Email message services
•
Wireless data synchronization
© 2009 Research In Motion Limited
Advanced application design considerations
Java ME and Java APIs for BlackBerry smartphone
– Java ME is an industry standard platform:
•
Defines common sets of Java APIs for wireless and
embedded devices
– Java ME application runs in the BlackBerry®
Java® Virtual Machine
© 2009 Research In Motion Limited
Advanced application design considerations
– Supported Java API extensions include:
•
User Interface APIs
•
Persistent Data Storage APIs
•
Networking and I/O APIs
•
Event Listeners
•
Application Integration APIs
•
Additional Utilities
I/O
© 2009 Research In Motion Limited
input/output
Advanced application design considerations
BlackBerry smartphone solutions
– BlackBerry smartphone users can use:
•
BlackBerry® Enterprise Server
•
BlackBerry® Internet Service
•
Both BlackBerry Enterprise Server and BlackBerry
Internet Service on the same smartphone
© 2009 Research In Motion Limited
Advanced application design considerations
BlackBerry Enterprise Solution
– The BlackBerry Enterprise Server is part of the
BlackBerry® Enterprise Solution
– The BlackBerry Enterprise Server:
•
Operates behind an organization's firewall
•
Provides a wireless gateway for accessing an
organization’s email servers and organizer data
© 2009 Research In Motion Limited
Advanced application design considerations
BlackBerry® Mobile Data System
– The BlackBerry MDS is included in the BlackBerry
Enterprise Server
– It provides HTTP and Socket connections for
BlackBerry Java Applications
HTTP Hypertext Transfer Protocol
TCP/IP Transmission Control Protocol/Internet Protocol
© 2009 Research In Motion Limited
Advanced application design considerations
BlackBerry Internet Service
– Use the BlackBerry Internet Service to access:
•
Email messages
•
Wireless access to email message attachments
•
Access to Internet content
© 2009 Research In Motion Limited
Using the BlackBerry Java Plug-in for
Eclipse
© 2009 Research In Motion Limited
BlackBerry Java Plug-in for Eclipse
– An extension allowing development of Java
applications optimized for BlackBerry
smartphones
– The BlackBerry Java Plug-in for Eclipse provides
tools to:
•
Design
•
Debug
•
Optimize
•
Localize mobile applications
© 2009 Research In Motion Limited
BlackBerry Java Plug-in for Eclipse
Features of BlackBerry Java Plug-in for Eclipse
– support for multiple BlackBerry® Device Software
versions
– code assist integration
– extended Java® debugging
– preprocessing support
– integration with BlackBerry features
Testing mobile applications
© 2009 Research In Motion Limited
Testing mobile applications
You can use the following methods to test
BlackBerry smartphone applications:
• Using the BlackBerry Smartphone Simulator. The
BlackBerry Smartphone Simulator permits you to run
BlackBerry smartphone applications on your computer.
• Using a BlackBerry smartphone. For debugging purposes,
you can attach your device to the BlackBerry IDE and use
the debugging tool to step through your application code.
Deploying mobile applications
© 2009 Research In Motion Limited
How to deploy applications
– Ways to install applications on BlackBerry
smartphones:
• BlackBerry® Desktop Manager
• Javaloader
• BlackBerry Application Web Loader
• Over the air
© 2009 Research In Motion Limited
How to deploy applications
– Ways to install applications on BlackBerry
smartphones:
• BlackBerry® Enterprise Server administration
• BlackBerry App World™ storefront
• Virtual preload
• Application Center
© 2009 Research In Motion Limited
How to deploy applications
– Before you deploy your application, consider the
following:
• Sign your application if required
• Specific Trust Level
• Interference of IT policies
IT
© 2009 Research In Motion Limited
information technology
How to deploy applications
BlackBerry Desktop Manager
– Use to download and install applications on a
BlackBerry smartphone
– Create and distribute the following files using Eclipse
to deploy using BlackBerry Desktop Manager:
• COD
• ALX
© 2009 Research In Motion Limited
How to deploy applications
Javaloader
– A command prompt utility providing low level control
over the BlackBerry smartphone
– Javaloader is for developer use only, and is not
intended for end users
BlackBerry Application Web Loader
– Use to install applications over a USB connection
– Download the application using a browser
USB
© 2009 Research In Motion Limited
universal serial bus
How to deploy applications
Over the air
– Download and install applications using wireless
connections
BlackBerry Enterprise Server
– Applications pushed by a BlackBerry Enterprise
Server connected to BlackBerry smartphones
© 2009 Research In Motion Limited
How to deploy applications
BlackBerry App World
– Distributes your applications using the BlackBerry
App World
– RIM must approve applications before being
published
RIM
© 2009 Research In Motion Limited
Research In Motion
How to deploy applications
Virtual preload
– Carriers can virtually preload applications
– The user clicks an icon, the BlackBerry smartphone
downloads the associated application
Instant load
– Instant load deployment is similar to virtual preload
– Applications are transparently installed upon initial
network activation
© 2009 Research In Motion Limited
How to deploy applications
Application center
– Users discover and download applications
– Receive notifications of new applications that are
available for download
© 2009 Research In Motion Limited
How to deploy applications
Troubleshooting BlackBerry Java Plug-in for Eclipse
– Eclipse provides tools to identify and troubleshoot
errors
– Run your application on the simulator
– Run your application on a BlackBerry smartphone
© 2009 Research In Motion Limited
Public key license requirements
© 2009 Research In Motion Limited
Public key license requirements
– License key models supported include:
• Static
• Single
• Pool
• Dynamic
© 2009 Research In Motion Limited
Summary
– All applications on the BlackBerry smartphones are created using Java
ME and BlackBerry APIs
– Java ME wireless environment supports client/server applications on
the BlackBerry smartphones
– BlackBerry Java Plug-in for Eclipse provides tools to design, debug,
optimize, and localize mobile applications, as well as to simulate the
integration between mobile applications, BlackBerry smartphone
services, and external data sources
– Deploy an application using BlackBerry Desktop Manager, Javaloader,
Blackberry Application Web Loader, or Over the air
– Use BlackBerry Enterprise Server to push the application to the
BlackBerry smartphone, or distribute your application through the
BlackBerry App World, Virtual Preloads, or the Application Center
© 2009 Research In Motion Limited
© 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.
© 2009 Research In Motion Limited