+612 9045 4394
Palm OS Programming - The Developers Guide 2e : O'Reilly Ser. - Neil Rhodes

Palm OS Programming - The Developers Guide 2e

O'Reilly Ser.

Paperback Published: 2nd November 2001
ISBN: 9781565928565
Number Of Pages: 704

Share This Book:


RRP $104.00
Ships in 15 business days

With more than 16 million PDAs shipped to date, Palm has defined the market for handhelds, having dominated this class of computing devices ever since it began to outpace competitors six years ago. The company's strength is the Palm OS, and developers loyal to this powerful and versatile operating system have created more than 10,000 applications for it. Devices from Handspring, Sony, Symbol, HandEra, Kyocera, and Samsung now use Palm OS, and the number of registered Palm Developers has jumped to 130,000.

If you know C or C++, and want to join those who are satisfying the demand for wireless applications, then Palm OS Programming: The Developer's Guide, Second Edition is the book for you. With expanded coverage of the Palm OS--up to and including the latest version, 4.0--this new edition shows intermediate to experienced C programmers how to build a Palm application from the ground up. There is even useful information for beginners.

Everything you need to write a Palm OS application is here, from user interface design, to coding a handheld application, to writing an associated desktop conduit. All the major development environments are discussed, including commercial products such as Metroworks CodeWarrior, Java-based environments such as Sun KVM and IBM VisualAge Micro Edition, and the Free Software Foundation's PRC-Tools or GCC. The focus, however, is C programming with CodeWarrior and PRC-Tools. New additions to the second edition include:

  • A tutorial that takes a C programmer through the installation of necessary tools and the creation of a small handheld application.
  • A new chapter on memory, with a comprehensive discussion of the Memory Manager APIs.
  • Greatly expanded discussions of forms, forms objects, and new APIs for the Palm OS.
  • Updated chapters on conduits that reflect the newer Conduit Development Kit.

The best-selling first edition of this book is still considered the definitive guide for serious Palm programmers; it's used as the basis of Palm's own developer training materials. Our expanded second edition promises to set the standard for the next generation of Palm developers.

Prefacep. xi
Overview of the Palm OS
The Palm Solutionp. 3
How Palm Succeededp. 3
Elements in the Magic Formulap. 5
Easy to Carryp. 5
Inexpensivep. 7
Expandablep. 8
Effortlessly Connects to a Desktop Computerp. 10
Works Great and Is Simple to Usep. 12
Designing Applications for Palm Devicesp. 14
Technical Overview and Development Environmentsp. 21
Palm OS Overviewp. 21
Conduit Overviewp. 25
Handheld Development Environmentsp. 26
Alternative Development Environmentsp. 32
High-Level Forms Developmentp. 35
Handheld Development Recommendationsp. 37
Conduit Developmentp. 39
Designing a Solutionp. 41
User Interface Elements in the Palm OSp. 42
Designing with a Particular User in Mindp. 53
The Well-Designed Formp. 70
Other Design Issuesp. 77
How the Sample Applications Are Usefulp. 80
User Interface of the Sales Applicationp. 80
Designing the Sales Applicationp. 90
Designing the Conduitp. 96
Design Summaryp. 98
Programming a Palm Application
Tutorialp. 103
POSEp. 104
Code Warriorp. 109
PRC-Toolsp. 119
Installing OReilly Sample projectp. 127
Installing a PRC on the Handheldp. 128
Installing PRC on POSEp. 130
Modifying the Sample Applicationp. 131
Structure of an Applicationp. 138
Terminologyp. 138
Palm OS Conventionsp. 140
The Palm OS and an Applicationp. 142
A Simple Application--OReilly Starterp. 150
Other Times Your Application Is Calledp. 161
Examplesp. 164
What to Rememberp. 170
Memory Managerp. 171
Types of Memoryp. 171
Dynamic Memory Allocationp. 175
Stack Spacep. 181
Handling Large Amounts of Datap. 184
Owner IDsp. 186
Cards and Local IDsp. 188
Using Memory Effectivelyp. 190
Memory TestAPIs Examplep. 191
What to Rememberp. 195
Debugging Palm Applicationsp. 196
POSEp. 197
Graffiti Debugging Shortcutsp. 206
Source-Level Debuggingp. 208
Gremlinsp. 213
Error Managerp. 219
Palm OS Sourcesp. 220
Low-Level Debugging with PalmDebuggerp. 221
Device Resetp. 222
Using Simulator on Mac OSp. 223
Release/Debug Targetsp. 223
Resources and Formsp. 227
Resourcesp. 227
Form Characteristicsp. 232
Form Eventsp. 233
Form-Level APIsp. 235
Modeless Formsp. 236
Alertsp. 237
Modal Dialog Boxesp. 239
Forms in the Sales Applicationp. 242
Form Objectsp. 248
Form Object Characteristicsp. 248
Form Object Eventsp. 249
Form Object APIsp. 251
Types of Form Objectsp. 254
Sales Application Forms and Form Objectsp. 294
Databasesp. 320
Overview of Databases and Recordsp. 320
Opening, Creating, and Closing Databasesp. 324
Working with Recordsp. 332
Examining Databases in the Sales Samplep. 350
Summaryp. 368
Menusp. 369
Menu User Interfacep. 369
Menu Resourcesp. 373
Application Code for Menusp. 374
Adding Menus to the Sample Applicationp. 384
Summaryp. 392
Extrasp. 393
Findp. 393
Exchangep. 402
Communicationsp. 416
Serial Communicationsp. 416
TCP/IP Communicationsp. 440
Designing Conduits
Getting Started with Conduitsp. 459
Overview of Conduitsp. 459
Using the Backup Conduitp. 462
Registering and Unregisteringp. 465
Using Desktop APIsp. 468
Conduit Entry Pointsp. 482
The HotSync Logp. 485
When the HotSync Button Is Pressedp. 487
Using Conduit Inspector to Verify Your Conduitp. 488
Syncing from POSEp. 490
Creating a Minimal Sales Conduitp. 492
Moving Data to and from the Handheld with a Conduitp. 500
Conduit Requirementsp. 500
Where to Store Datap. 500
Creating, Opening, and Closing Databasesp. 501
Moving Data to the Handheldp. 502
Moving Data to the Desktopp. 505
Keeping the HotSync Progress Dialog Box Alivep. 508
When the HotSync Button Is Pressedp. 509
Portability Issuesp. 509
The Sales Conduitp. 511
Two-Way Syncingp. 529
The Logic of Syncingp. 529
MFC Conduit Frameworkp. 534
Generic Conduit Frameworkp. 534
Generic Conduit Classesp. 535
Using the Wizard to Create a Minimal Generic Conduitp. 542
Custom File Formatsp. 545
Handling Categoriesp. 548
Sales Conduit Based on Generic Conduitp. 551
Where to Go from Herep. 565
Sales Source Codep. 569
PilRC Manualp. 638
Indexp. 663
Table of Contents provided by Syndetics. All Rights Reserved.

ISBN: 9781565928565
ISBN-10: 1565928563
Series: O'Reilly Ser.
Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 704
Published: 2nd November 2001
Publisher: John Wiley & Sons Publishers
Country of Publication: US
Dimensions (cm): 22.86 x 17.78  x 3.18
Weight (kg): 0.98
Edition Number: 2
Edition Type: Revised