Home > Store

Java Development on PDAs: Building Applications for Pocket PC and Palm Devices

Register your product to gain access to bonus material or receive a coupon.

Java Development on PDAs: Building Applications for Pocket PC and Palm Devices

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2003
  • Dimensions: 7" x 9-1/4"
  • Pages: 256
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-71954-1
  • ISBN-13: 978-0-201-71954-3

With the release of Java 2 Micro Edition (J2ME), Sun Microsystems opened Java to the rapidly expanding Personal Digital Assistant (PDA) market.

This comprehensive tutorial and reference provides an in-depth look at developing PDA software with J2ME and PersonalJava, covering both Palm and PocketPC devices. Succinct and practical, Java™ Development on PDAs focuses on real-world programming tasks with extensive code examples and an end-to-end PDA application demonstrating techniques for integrating devices with the enterprise via Web services.

This book describes the J2ME platform and PersonalJava and discusses design issues specific to resource-constrained devices. It also provides in-depth coverage of networking and Internet access, the user interface, data storage, and integrating PDAs into the corporation.

You will learn to develop Java applications for PocketPC and Palm devices through in-depth coverage of:

  • J2ME configurations
  • CLDC and CDC profiles
  • Selecting a PDA for development
  • PDA development tools
  • Designing for constrained computational capability
  • Designing for constrained screen and memory size
  • PDA user interfaces
  • Storing information on the devices
  • The Generic Connection Framework
  • Internet access from a Java PDA application via a GSM phone and Bluetooth
  • Accessing Web services from Palm and PocketPC devices

Java™ Development on PDAs concludes with a look into the future of PDA technology and the expanding role of these devices in the enterprise.

Written for anyone with a basic knowledge of Java, this important resource is a must-have for all those interested in the Palm OS and PocketPC markets.

0201719541B05292003

Downloads

Source Code

Click for the Source Code related to this title.

Extras

Related Article

Java On Pocket PC Devices

Sample Content

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents



Introduction.


1. Java 2, Micro Edition: Configurations, Profiles, and Virtual Machines.

J2ME Configurations.

CLDC Optional Packages.

CDC Profiles.

Summary.



2. Which PDA?

Why Choose?

Top Factors in Choosing a PDA for Java.

Which Java on Which PDA?

Palm Models.

Summary.



3. Setting Up the Development Environment.

Installing the Books Source Code.

Setting Up the Palm OS Emulator.

J2ME Wireless Toolkit.

Running Java Applications on the Palm.

Running Java Applications on the PocketPC.

Summary.



4. Things To Think About When Designing for Small Devices.

Design Issue 1—Constrained Computational Capability.

Design Issue 2—Constrained Screen Size.

Design Issue 3—Constrained Memory Size.

Summary.



5. The User Interface.

User Interfaces in MIDP.

Displayable.

User Interfaces in PersonalJava.

Summary.



6. Storing Information.

Storing Information Using MIDP.

The RMS APIs.

Code Example.

Record Listeners.

Palm Implementation of Record Stores.

Other Java Databases.

Storing Information with PersonalJava.

Summary.



7. Networking.

Introduction.

Networking on Palm Devices.

The Generic Connection Framework.

Example.

Internet Access From the Palm Device.

Networking on the PocketPC.

Summary.



8. Integrating with the Enterprise Using Web Services.

What is a Web Service?

The ImageService Web Service.

Setting Up Axis and Tomcat.

The ImageViewer Client Application.

Web Service Access From A Palm Device.

Palm ImageViewer.

PocketPC Version.

Summary.



9. Futures.

Technologies.

Specifications. 0201719541T03032003

Preface

Java and PDAs are a powerful combination. In 2003, sales should increase to 19.5 million units. While PC sales have arguably peaked, PDAs are still very much in a growth phase.

Java is also a huge market, with millions of developers working world-wide in all areas of computing: from mainframes to matchbox-sized web servers.

What this book is about

This book is about using Java to develop PDA applications. Having spent many years writing applications in C and then in C++, I felt that Java was a giant leap forward when I started using it in November 1995. I wrote this book because I wanted to develop applications for PDAs, but did not want to go back to writing applications in C. After learning Java and realising its power for developing a wide range of applications, I did not want to step back. Perhaps you feel the same way.

Aside from personal preference for development language though, there are good business reasons to use Java to develop PDA applications. Firstly, your organization may be already using Java to develop enterprise systems. A large amount of time, money, and effort has probably been invested in building up Java expertise, tools and resources.

Secondly, you may be attracted by the ability to write portable applications using Java 2, Micro Edition. Just as Java code is portable across platforms supporting the other editions of Java 2 (Enterprise and Standard), applications written for Java 2 Micro Edition are portable across platforms supporting the same configurations and profiles. However, it’s fair to say that applications written for the Standard and Enterprise editions of Java 2 are more easily portable across platforms than applications written for the Micro edition. This is because, unlike the other editions, Micro edition applications target severely constrained devices. Because the platforms targetted by the Micro edition differ from each other in terms of memory and screen real estate much more than their enterprise and desktop counterparts, configurations and profiles dictate the features that are available on each platform. However, Micro edition applications that are written for one platform that supports a configuration and profile combination are quite portable to other platforms supporting the same combination. It’s a nice feeling to know that an application written for J2ME on a PDA is usable on other devices supporting the same configuration and profile, and vice versa. This is vastly different from writing applications in C or C++ for the same devices. We’ll be talking about configurations and profiles in a later chapter.

Thirdly, you may wish to re-use simple business logic in your devices applications that has developed for other applications. You may want to check for a valid credit card number on the PDA application, and you may have a corporation-wide standard class for card number validation.

Any or all of these reasons are good reasons to be interested in Java on PDAs.

Once you want to develop PDA applications using Java, you are faced with some more decisions about which Java to use. There are several options. This book focuses on options that conform to the Java 2 Micro Edition and PersonalJava standards because these are open standards for Java on resource-constrained devices. The standards are open because specifications are created as part of the Java Community Process, which is open to all developers for contributions and review of drafts.

Scope

The scope of the book includes developing Java applications for the Palm and PocketPC PDAs using J2ME and PersonalJava respectively. Strictly speaking, PersonalJava is part of the J2SE family rather than J2ME, but it is included in the book’s scope because most PocketPCs already sold and sold today come with PersonalJava installed. Additonally, as I write, implementations of the J2ME replacement for PersonalJava (the Personal Profile, which we will discuss later) have not yet arrived for the PocketPC.

Since the book is focussed on what a developer can do today on a Palm or PocketPC PDA, the J2ME PDA Profile (PDAP) is covered briefly, but the book does not present PDAP code. This is because the PDAP has not yet been finalised in the Java Community Process, and implementations on real devices are not yet available. Hopefully this situation will change soon.

While the applications presented in this book will run on other platforms, such as mobile phones, the specific intent is to focus on applications that run on PDAs and the considerations a PDA developer should keep in mind.

In the book we will consider the end-to-end solution for integrating a PDA into the enterprise, and so the book does includes some server-side code.

Not included in scope is coverage of other PDAs such as the Sharp Zaurus. To make the book manageable, I decided to concentrate on the two dominant products in the PDA market. Also not included is coverage of PocketPCs running operating systems other than WindowsCE, such as iPaqs that run Linux.

The book does not cover Java-like languages for PDAs such as Waba, since they are not based on the open Java standard.

Audience

This book is written for developers who already know Java, and who want to write Java applications for PDAs, in particular the PocketPC and Palm devices. It is my intention to present the necessary concepts in practical terms, so that a Java developer can pick it up and start writing PDA applications in Java quite quickly. It assumes that you already have some Java experience with the Standard edition and/ or the Enterprise edition.

This is not a book for people interested in learning Java. If that applies to you, I suggest buying an introductory Java book and downloading Java 2 Standard Edition from www.java.sun.com. Learning Java with J2SE is a much better way to get started.

Code Source

Rather than bulking up this volume with page after page of source code listings, I have made the source code available for download from the book’s companion Web site at www.javaonpdas.com. This allows me to ensure that the most up-to-date source is available at all times and, as a reader, I would prefer that a book’s volume is taken up with truly useful information. I hope you agree that this is a good idea.

Development Environment

The chapters are intended to be independent of the development environment you may choose. In “Setting Up the Development Environment,” we discuss the options for a development environment. Whichever environment you initially choose, or to which you subsequently switch, the source code in other chapters will remain useful.

The development platform used in all the examples is Windows. Generally it is noted where tools run on other platforms, but I have not tried to run the tools on other platforms. I have tried to be platform-neutral as much as possible though, so if you are running a desktop operating system other than Windows the book is hopefully still useful to you.



0201719541P03032003

Index

Download the Index file related to this title.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020