BlackBerry Java Application Development


BlackBerry Java Application Development
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Develop professional, rich, and smart Java applications using BlackBerry SDK
  • Discover the powerful components provided by the SDK to build a powerful user interface with a common look and feel
  • Explore the complex, but important, topic of network communications
  • Integrate with the standard applications on all BlackBerry Smartphone to make your application even more useful
  • Packed with hands-on examples and clear explanations for better understanding

 

Book Details

Language : English
Paperback : 368 pages [ 235mm x 191mm ]
Release Date : July 2010
ISBN : 1849690200
ISBN 13 : 9781849690201
Author(s) : Bill Foust
Topics and Technologies : All Books, Mobile Application Development, Mobile, Beginner's Guides, Java


Table of Contents

Preface
Chapter 1: Introducing BlackBerry Application Development
Chapter 2: Installing the Development Environment
Chapter 3: Getting Familiar with the Development Environment
Chapter 4: Creating your First BlackBerry Project
Chapter 5: Learning the Basics About the UI
Chapter 6: Going Deeper into the UI
Chapter 7: Storing Data
Chapter 8: Interfacing with Applications
Chapter 9: Networking
Chapter 10: Advanced Topics
Chapter 11: Wrapping It All Up
Appendix: Pop Quiz Answers
Index
  • Chapter 2: Installing the Development Environment
    • System requirements
    • Development Environments
      • Downloading and installing Java
    • Time for action – downloading the Java Development Kit
    • Time for action – installing the Java Development Kit (JDK)
    • Introducing the BlackBerry Developer Zone
      • Downloading and installing Eclipse
    • Time for action – downloading Eclipse with the JDE plugin
    • Time for action – installing the JDE plugin for Eclipse Full installer
      • Installing other JDE component package versions
    • Time for action – installing other JDE component packages over-the-air
    • Summary
  • Chapter 3: Getting Familiar with the Development Environment
    • Starting the Eclipse IDE
    • Time for action – launching Eclipse for the first time
    • Importing the hello world project
    • Time for action – importing the HelloWorldDemo sample application
    • Running the application
    • Time for action – running an application in the simulator
    • Debugging the application
    • Time for action – starting the debugger
    • Introducing Eclipse perspectives
    • Time for action – changing the perspective
      • Getting some help!
    • Time for action – displaying the Help
    • Summary
  • Chapter 4: Creating your First BlackBerry Project
    • Choosing the SDK version
      • Creating a new project
    • Time for action – creating a new project
      • Adding a package to the new project
    • Time for action – creating a new project
    • Start at the beginning
      • Application and UiApplication
    • Time for action – adding the UiApplication class
      • A closer look at the code
    • Time for action – expanding TipCalcApplication
      • MainScreen
    • Time for action – adding a MainScreen
      • Determining your screen requirements
    • Time for action – expanding the TIpCalcMainScreen
    • Time for action – adding more to the MainScreen
      • Adding a menu to the application
    • Time for action – adding a menu to the MainScreen
      • Setting the SDK version
    • Time for action – selecting the right component package
      • Testing it out
    • Time for action – running your new application
    • Giving TipCalc some polish
      • Adding an icon to TipCalc
    • Time for action – adding an icon
    • Time for action – changing the application title
      • Fixing the Bill Amount field
    • Time for action – fixing the bill amount field
      • Disabling the save prompt
    • Time for action – disabling the "save" dialog
    • Summary
  • Chapter 5: Learning the Basics About the UI
    • Getting to know other Field classes
    • SeparatorField
    • Time for action – creating a SeparatorField
    • LabelField
    • Time for action – creating a LabelField
    • BitmapField
    • Time for action – creating a BitmapField
    • ChoiceField
      • ObjectChoiceField
    • Time for action – creating an ObjectChoiceField
      • NumericChoiceField
    • Time for action – creating a NumericChoiceField
    • GaugeField
    • Time for action – creating a GaugeField
    • DateField
    • Time for action – creating a DateField
    • CheckboxField
    • Time for action – creating a CheckboxField
    • RadioButtonField
    • Time for action – creating a RadioButtonField
    • TextField
      • BasicEditField
    • Time for action – creating a BasicEditField
      • EditField
    • Time for action – creating an EditField
      • PasswordEditField
    • Time for action – creating a PasswordEditField
      • EmailAddressEditField
    • Time for action – creating an EmailAddressField
      • AutoTextEditField
    • Time for action – creating an AutoTextEditField
      • ActiveAutoTextEditField
    • Time for action – creating an ActiveAutoTextEditField
      • RichTextField
    • Time for action – creating a RichTextField
      • ActiveRichTextField
    • Time for action – creating an ActiveRichTextField
    • Summary
  • Chapter 6: Going Deeper into the UI
    • ButtonField
    • Time for action – creating a ButtonField
      • ListField
    • Time for action – creating a ListField
    • TreeField
    • Time for action – creating a TreeField
    • MapField
    • Time for action – creating a MapField
    • Displaying another screen
    • Time for action – creating an "About Screen"
    • Displaying a dialog
    • Time for action – collecting information with a common dialog
    • Time for action – collecting information with custom buttons on a dialog
    • Time for action – collecting information with a list on a dialog
    • Listeners and callbacks
    • Layout managers
      • Special considerations for touchscreens
      • TouchEvents and TouchGestures
    • Summary
  • Chapter 7: Storing Data
    • Laying the ground work
    • Creating a data class
    • The Java way: RMS
    • Time for action – creating and opening a RecordStore
    • Time for action – adding a record
    • Time for action – retrieving records
    • Time for action – deleting records
    • The BlackBerry way: Persistent Store
    • PersistentStore and PersistentObject
    • Time for action – preparing the JournalEntry class
    • Time for action – getting a PersistentObject
    • Time for action – accessing the PersistentObject data
    • Time for action – accessing the PersistentObject data
    • Accessing removable storage
      • Connector and FileConnection
    • Time for action – storing data to a file
    • Time for action – reading data from a file
    • Summary
  • Chapter 8: Interfacing with Applications
    • Introducing PIM
      • Why is all so generic?
        • PIMLists
        • PIMItems
    • Laying the ground work
    • Time for action – creating test contacts
    • Expanding your test contacts
    • Time for action – adding telephone numbers
    • Expanding even more
    • Time for action – adding e-mail addresses
    • Finishing the test contacts
    • Time for action – adding e-mail addresses
    • Embedding the address book into your application
    • Time for action – embedding the address book
    • Adding the event to your calendar
    • Time for action – adding an event to the calendar
    • Recurring events
    • Sending e-mail
    • Time for action – sending an e-mail from an application
    • Summary
  • Chapter 9: Networking
    • Threading
    • Connector class
    • HTTP basics
      • HTTP GET requests
    • Time for action  HTTP Basics
      • HTTP POST requests
    • Time for action – calling a web service
    • Time for action – parsing the response
    • The transport—so many possibilities
      • Direct TCP/IP
      • MDS/BES
      • BIS-B
      • Wi-Fi
      • WAP
        • WAP 1.X
      • WAP 2.0
    • Debugging with the MDS simulator
    • Testing for availability of transports
    • Time for action – testing for availability
    • Moving beyond HTTP connections
    • Summary
  • Chapter 10: Advanced Topics
    • Introducing the Global Positioning System
      • The LocationProvider class
        • Criteria
        • Three ways to get GPS data
        • Bringing it all together
      • Getting coordinates
    • Time for action – acquiring a location
      • Expanding Hansel
    • Time for action – expanding Hansel
    • Alternate entry points
      • Creating a focus icon
    • Time for action – creating an alternate entry point project
    • Time for action – adding a focus icon to Hansel
    • Summary
  • Chapter 11: Wrapping It All Up
    • Using resources for localization
    • Time for action – adding a resource file
    • Resource bundles
    • Time for action – adding a second resource file
    • Time for action – populating a resource file and configuring the project
    • Time for action – using a resource in your code
    • Code signing your application
    • Time for action – configuring projects to allow access
    • Time for action – installing the code-signing keys
    • Time for action – code-signing the application
    • Distributing your application through BlackBerry App World
      • Licensing models
      • Submitting an application
    • Summary
  • Appendix: Pop Quiz Answers
    • Chapter 2
    • Chapter 3
    • Chapter 4
      • Pop Quiz 1
      • Pop Quiz 2
      • Pop Quiz 3
    • Chapter 5
      • Pop Quiz 1
      • Pop Quiz 2
      • Pop Quiz 3
      • Pop Quiz 4
      • Pop Quiz 5
    • Chapter 6
      • Pop Quiz 1
      • Pop Quiz 2
      • Pop Quiz 3
    • Chapter 7
      • Pop Quiz 1
      • Pop Quiz 2
      • Pop Quiz 3
    • Chapter 8
      • Pop Quiz 1
      • Pop Quiz 2
      • Pop Quiz 3
    • Chapter 9
      • Pop Quiz 1
      • Pop Quiz 2
      • Pop Quiz 3
    • Chapter 10
      • Pop Quiz 1
      • Pop Quiz 2
    • Chapter 11

Bill Foust

Bill has been a professional developer for over 15 years in a variety of platforms and languages. Bill first encountered a RIM 950, the predecessor to the BlackBerry brand, in 1998 and has been working with them since that time. During this early period, he wrote and sold many applications for BlackBerry through Handango.com and was involved in many custom development projects as well.
With the release of the BlackBerry 5810 in 2002, the development environment changed from C++ to Java Micro, and Bill started pursuing other opportunities, including .NET and has continued to do development and consulting professionally since then.
He wrote his first book "Mobile Guide to BlackBerry" in 2005 and later became part of the podcasting and blogging team at MobileComputingAuthority.com, which focuses on mobile devices of all kinds.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 05 Nov 2012

Errata type: Technical/Typo | Page number: 199

In LoadData() function EntryList.addElement(newEntry); should be _EntryList.addElement(newEntry);

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

BlackBerry Java Application Development +    Android NDK Beginner’s Guide =
50% Off
the second eBook
Price for both: $37.50

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Learn about the two approaches to develop BlackBerry applications
  • Understand how the SDK version relates to target devices and learn about the BlackBerry Developer Zone
  • Install the Java SDK, which is the foundation using the development environment
  • Install Eclipse with the BlackBerry Component Package and configure it with other Component Package versions
  • Import the existing HelloWorldDemo supplied with the software and compile and debug the application
  • Study PIM, create new PIM Items, and assign values to their fields
  • Set up a Screen with fields and create and use menus
  • Learn the usage of the Field styles and classes to the fullest
  • Study about a Layout Manager and create custom Dialogs on the fly to collect discrete pieces of information
  • Get to know the pros and cons for each record-based approach and pick the one that best meets your needs
  • Create new Personal Information Management (PIM) items and assign values to their fields
  • Understand the basics of HTTP and the correct usage of GET or POST
  • Learn the working of Global Position System and the three methods by which a BlackBerry handheld can get location information

 

In Detail

BlackBerry Smartphone was once the domain of jet-setting business users with power suits. Now you can hardly go anywhere without seeing someone using a BlackBerry to check their messages or make a call. It's this kind of explosive growth that makes the BlackBerry ecosystem a great place to develop and market applications through the BlackBerry App World store—this book shows you how to do just that!

This step-by-step guide gives you a hands-on experience of developing innovative Java applications for your BlackBerry. With the help of this book, you will learn to build your own applications to illustrate the platform, and the various capabilities that developers can use in their programs. It explores the powers of Blackberry and helps you develop professional and impressive Java applications.

The book teaches how to write rich, interactive, and smart BlackBerry applications in Java. It expects the readers to know Java but not Java Mobile or the BlackBerry APIs. We will learn to build rich, interactive, and smart Java applications for the BlackBerry. The book will cover UI programming, data storage, programming network, and internet API apps. As we move on, we will learn more about the BlackBerry's device features, such as messaging, GPS, multimedia, contacts and calendar, and so on.
This book also helps you build your own applications to illustrate the platform, and the various capabilities that developers can use in their programs.

This step-by-step guide to building rich, interactive, and smart Java applications helps you get the most out of BlackBerry smartphones.

Approach

Written with a fast-paced but friendly and engaging approach, this Packt Beginner's Guide is designed to be placed alongside the computer as your guide and mentor. Step-by-step tutorials are boosted by explanations of the reasoning behind what you are doing. You will quickly pick up the necessary skills, tips, and tricks for building BlackBerry applications with Java with practical.

Who this book is for

If you are a Java programmer who wants to build BlackBerry applications with Java, this book is for you.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software