Sing Li, Jonathan Knudsen9781590594797, 1590594797
Table of contents :
Contents at a Glance……Page 6
ContentsContents……Page 8
About the Authors……Page 18
About the Technical Reviewer……Page 20
Acknowledgments……Page 22
The Structure of This Book……Page 24
Understanding J2ME……Page 26
Configurations……Page 28
Profiles……Page 30
Anatomy of MIDP Applications……Page 31
Advantages of MIDP……Page 33
Fragmentation……Page 34
Summary……Page 35
Tooling Up……Page 36
Creating Source Code……Page 37
Compiling a MIDlet……Page 40
Preverifying Class Files……Page 42
Sun’s J2ME Wireless Toolkit Emulators……Page 43
Tour of MIDP Features……Page 45
Packaging Your Application……Page 48
Using an Obfuscator……Page 49
Using Ant……Page 50
Summary……Page 52
The MIDlet Life Cycle……Page 53
Requesting a Wakeup Call……Page 54
Packaging MIDlets……Page 55
MIDlet Suite Security……Page 59
Summary……Page 61
java.lang……Page 62
Streams in java.io……Page 68
java.util……Page 72
Summary……Page 75
The View from the Top……Page 76
Using Display……Page 78
Event Handling with Commands……Page 79
Tickers……Page 83
TextBox, the Simplest Screen……Page 84
Using Alerts……Page 86
Summary……Page 89
Using Lists……Page 90
Creating Advanced Interfaces with Forms……Page 96
Summary……Page 111
Introducing CustomItem……Page 112
CustomItem Painting……Page 115
Handling Events……Page 116
Item Traversal……Page 117
An Example……Page 120
Summary……Page 125
Overview……Page 126
Managing Record Stores……Page 127
Working with Records……Page 129
Saving User Preferences……Page 131
Listening for Record Changes……Page 135
Performing RecordStore Queries……Page 136
Summary……Page 139
File Connection Optional Package……Page 140
Listening for Card Insertion and Removal……Page 146
Opening the PIM Lists……Page 154
Summary……Page 165
The Generic Connection Framework……Page 166
Review of HTTP……Page 168
Making a Connection with HTTP GET……Page 169
Posting a Form with HTTP POST……Page 172
Using Cookies for Session Tracking……Page 175
Using HTTPS……Page 180
Using Datagram Connections……Page 181
Other Connection Types……Page 182
Responding to Incoming Connections……Page 183
Permissions for Network Connections……Page 186
Summary……Page 187
Ubiquitous SMS……Page 188
WMA API……Page 190
Sending Binary SMS Messages……Page 192
Receiving SMS Messages……Page 193
Examining Message Headers……Page 195
Receiving CBS Messages……Page 196
Multimedia Messaging with WMA 2.0……Page 204
A MIDlet to Send and Receive MMS……Page 208
Summary……Page 217
Bluetooth, CLDC, and MIDP……Page 218
Networking with Devices Near You……Page 219
The Bluetooth Service Model……Page 221
The Bluetooth API……Page 222
ServiceRecord and Service Attributes……Page 228
Creating a Bluetooth Service……Page 229
A Bluetooth Dating Service……Page 230
Infrared Communications and OBEX……Page 238
An OBEX Dating Service……Page 243
Summary……Page 252
Canvas Information……Page 253
Painting and Repainting……Page 254
Drawing Shapes, Text, and Images……Page 255
Key Events……Page 268
Game Actions……Page 269
Pointer Events……Page 271
Multithreading and Animation……Page 272
Summary……Page 276
Driving Animation with GameCanvas……Page 277
Polling for Key States……Page 279
Managing Layers……Page 281
Using Tiled Layers……Page 282
Using Sprites……Page 285
Putting It All Together……Page 289
Special Effects……Page 294
Summary……Page 295
Overview……Page 296
Getting Started with 3D……Page 298
Immediate Mode vs. Retained Mode……Page 318
Summary……Page 324
Quick Start……Page 325
MMAPI Media Concepts……Page 331
Supported Content Types and Protocols……Page 332
Player Life Cycle……Page 334
Controlling Players……Page 335
Tones and Tone Sequences……Page 336
The Mobile Media API……Page 341
Summary……Page 349
Benchmarking……Page 350
Diagnostic Tools in the J2ME Wireless Toolkit……Page 351
Optimizing Memory Use……Page 354
Coding for Speed……Page 356
Optimizing Application Deployment……Page 359
Summary……Page 360
The Internet Is a Big Room……Page 361
The Bouncy Castle Cryptography Package……Page 363
Protecting Passwords with a Message Digest……Page 364
Securing Network Data……Page 374
Trimming Bouncy Castle Down to Size……Page 382
Summary……Page 384
Package java.io……Page 385
Package java.lang……Page 391
Package java.util……Page 402
Package javax.microedition.io……Page 407
Package javax.microedition.lcdui……Page 413
Package javax.microedition.lcdui.game……Page 429
Package javax.microedition.media……Page 432
Package javax.microedition.media.control……Page 433
Package javax.microedition.midlet……Page 434
Package javax.microedition.rms……Page 435
INDEX……Page 438
Reviews
There are no reviews yet.