Book Image

BlackBerry Java Application Development

Book Image

BlackBerry Java Application Development

Overview of this book

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.
Table of Contents (18 chapters)
BlackBerry Java Application Development
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

What you can expect


This book is structured to take you from beginning to end in terms of application development and touch on all the most important topics along the way. You will learn about each aspect of application development from the very basics of simply installing the tools that you will need to the last steps of submitting your application to BlackBerry App World.

We do assume that you are familiar with an object-oriented programming language already. Syntactically and conceptually, Java is very similar to C# and even C++, so someone experienced in either of these languages should be able to make the transition to Java quickly.

This book starts at the very beginning with downloading and installing the tools necessary to start creating an application. This isn't quite as simple as performing a single install, but it's not too complex either.

In the next few chapters, we'll dive right in by loading and compiling one of the demo applications that comes with the tools. This gives you an opportunity to get more familiar with the development environment and by examining the typical "Hello World!" application in detail.

Then we start from scratch with a brand new empty project and create an application. This simple application is both very functional and very polished, which demonstrates how you can create applications quickly by leveraging the framework provided in the SDK.

We will look at this framework in detail by thoroughly examining all of the screen components available to you and by covering when each screen element is best employed. Many of these screen elements are common among all development languages and platforms, but many have behavior that is unique to BlackBerry and warrant the extra attention.

Once we have the screen elements well understood, it's time to branch out into other areas of the system and data storage is one of the most important areas to understand. One of the chapters focuses exclusively on data storage using each of the methods that are available for storing data on a handheld.

One thing that really makes developing for BlackBerry exciting is the ability to integrate with and leverage the existing applications that are present on every BlackBerry handheld. We will look at how to do this more closely, but this is an area so large that one chapter just isn't enough to do it justice. You will be well on your way by the end of it though!

Probably the most complicated and difficult area of the BlackBerry SDK is networking. We will tackle this topic head-on, giving both practical advice and examples for how to create networked applications.

We will also focus on a couple of areas that are interesting, but which aren't as applicable to some applications. The GPS receiver that is included in many new models of BlackBerry devices is one such area. Although both neat and powerful, not all applications can utilize this feature. The other area covered is truly an advanced topic called alternate entry point applications. These have many powerful uses though, one of which is demonstrated for a trivial but common effect that makes your application feel polished and professional.

Our next focus will be on getting your application ready for deployment by covering a number of topics such as localizing and code signing your application. As a final word, we look at what is needed to submit your application to the BlackBerry App World so that it can easily be used by the millions of BlackBerry users world-wide!