J2ME, the complete reference

Free Download

Authors:

ISBN: 9780072227109, 0-07-222710-9

Size: 10 MB (10587080 bytes)

Pages: 769/769

File format:

Language:

Publishing Year:

James Keogh9780072227109, 0-07-222710-9

This comprehensive resource covers J2ME architecture and explains how to build applications and services for cell phones and PDAs with J2ME. You’ll also get details on security, information management, and storage, as well as advanced topics such as Mobile Information Device Profile (MIDP) and Connected Limited Device Configuration (CLDC)

Table of contents :
J2ME: The Complete Reference……Page 1
Contents……Page 6
Introduction……Page 16
Part I J2ME Basics……Page 22
1 J2ME Overview……Page 24
Java 2 Micro Edition and the World of Java……Page 25
Enter Java……Page 26
J2EE and J2SE……Page 27
Back to the Future: J2ME……Page 29
Inside J2ME……Page 30
How J2ME Is Organized……Page 33
J2ME and Wireless Devices……Page 35
What J2ME Isn’t……Page 36
Other Java Platforms for Small Computing Devices……Page 37
2 Small Computing Technology……Page 38
Wireless Technology……Page 39
Limitations of Radio Transmissions……Page 41
Radio Data Networks……Page 43
Data Packets……Page 44
Satellite Networks……Page 45
Mobile Radio Networks……Page 46
Cellular Telephone Networks……Page 47
Cell Phones and Text Input……Page 49
Messaging……Page 50
Personal Digital Assistants……Page 51
Mobile Power……Page 52
Set-Top Boxes……Page 53
Inside Look at a Set-Top Box……Page 54
Smart Cards……Page 55
3 J2ME Architecture and Development Environment……Page 56
J2ME Architecture……Page 57
Run-Time Environment……Page 58
Inside the Java Archive File……Page 59
Inside the Java Application Descriptor File……Page 61
MIDlet Programming……Page 63
Event Handling……Page 64
Device Data……Page 65
Java Language for J2ME……Page 66
J2ME Software Development Kits……Page 69
Hello World J2ME Style……Page 71
Compiling Hello World……Page 74
Deploying Hello World……Page 75
What to Do When Your MIDlet Doesn’t Work Properly……Page 77
Multiple MIDlets in a MIDlet Suite……Page 78
J2ME Wireless Toolkit……Page 81
Building and Running a Project……Page 82
Hello World Project……Page 85
MIDlets on the Internet……Page 88
4 J2ME Best Practices and Patterns……Page 92
The Reality of Working in a J2ME World……Page 93
Keep Applications Simple……Page 94
Keep Applications Small……Page 95
Limit the Use of Memory……Page 96
Off-Load Computations to the Server……Page 97
Manage Your Application’s Use of a Network Connection……Page 98
Simplify the User Interface……Page 100
Don’t Concatenate Strings……Page 102
Avoid Synchronization……Page 103
Upload Code from the Web Server……Page 104
Reading Settings from JAD Files……Page 105
Populating Drop-down Boxes……Page 106
Dealing with Time……Page 107
Automatic Data Synchronization……Page 109
Updating Data that Has Changed……Page 110
Be Careful of the Content of the startApp() Method……Page 111
Part II J2ME User Interface……Page 114
5 Commands, Items, and Event Processing……Page 116
Display Class……Page 117
The Palm OS Emulator……Page 123
Command Class……Page 124
CommandListener……Page 126
Item Class……Page 132
Item Listener……Page 135
Exception Handling……Page 139
Throwing a MIDletStateChangeException……Page 141
Quick Reference Guide……Page 146
6 High-Level Display: Screens……Page 150
Screen Class……Page 151
Alert Class……Page 152
Alert Sound……Page 159
Form Class……Page 160
Item Class……Page 164
ChoiceGroup Class……Page 165
DateField Class……Page 175
Gauge Class……Page 179
StringItem Class……Page 187
TextField Class……Page 191
ImageItem Class……Page 199
List Class……Page 203
Creating an Instance of a List Class……Page 205
TextBox Class……Page 215
Creating an Instance of a TextBox Class……Page 216
Ticker Class……Page 220
Quick Reference Guide……Page 224
7 Low-Level Display: Canvas……Page 234
The Canvas……Page 235
The Layout of a Canvas……Page 236
Proportional Coordinates……Page 237
Painting……Page 238
User Interactions……Page 240
Working with Key Codes……Page 241
Working with Game Actions……Page 248
Working with Pointer Devices……Page 254
Graphics……Page 260
Stroke Style and Color……Page 261
Rectangles……Page 264
Arcs……Page 271
Text……Page 278
Images……Page 287
Repositioning Text and Images……Page 295
Clipping Regions……Page 300
Creating a Clipping Region……Page 301
Animation……Page 305
Quick Reference Guide……Page 307
Part III J2ME Data Management……Page 314
8 Record Management System……Page 316
The Record Store……Page 317
Record Store Scope……Page 318
Setting Up a Record Store……Page 319
Writing and Reading Records……Page 323
Creating a New Record and Reading an Existing Record……Page 324
Writing and Reading Mixed Data Types……Page 330
Record Enumeration……Page 337
Reading a Record of a Simple Data Type into a RecordEnumeration……Page 340
Reading a Mixed Data Type Record into a RecordEnumeration……Page 345
Sorting Records……Page 351
Sorting Single Data Type Records in a RecordEnumeration……Page 353
Sorting Mixed Data Type Records in a RecordEnumeration……Page 358
Searching Single Data Type Records……Page 366
Searching Mixed Data Type Records……Page 373
RecordListener……Page 380
Quick Reference Guide……Page 381
9 J2ME Database Concepts……Page 386
Data……Page 387
Tables……Page 388
Database Schema……Page 389
Identifying Information……Page 390
Decomposing Attributes to Data……Page 393
Defining Data……Page 396
Normalizing Data……Page 398
Grouping Data……Page 399
Creating Primary Keys……Page 401
Transitive Dependencies……Page 403
Foreign Keys……Page 404
Referential Integrity……Page 405
The Art of Indexing……Page 406
Drawbacks of Using an Index……Page 407
Clustered Keys……Page 408
Selective Rows……Page 409
Searching for Phonetic Matches……Page 410
10 JDBC Objects……Page 412
The Concept of JDBC……Page 413
Type 1 JDBC to ODBC Driver……Page 414
Overview of the JDBC Process……Page 415
Create and Execute an SQL Statement……Page 416
Process Data Returned by the DBMS……Page 417
Terminate the Connection to the DBMS……Page 418
The Connection……Page 419
Timeout……Page 422
Connection Pool……Page 423
The Statement Object……Page 424
PreparedStatement Object……Page 427
CallableStatement……Page 428
ResultSet……Page 430
Reading the ResultSet……Page 431
Scrollable ResultSet……Page 432
Specify Number of Rows to Return……Page 435
Updatable ResultSet……Page 436
Transaction Processing……Page 440
Savepoints……Page 442
Batch Statements……Page 443
RowSet……Page 445
ResultSet Metadata……Page 447
Data Types……Page 448
Exceptions……Page 449
Quick Reference Guide……Page 450
11 JDBC and Embedded SQL……Page 474
Model Programs……Page 475
Model A Program……Page 476
Model B Program……Page 478
Create a Table……Page 481
Drop a Table……Page 483
Create an Index……Page 484
Inserting Data into Tables……Page 486
Insert the System Date into a Column……Page 487
Insert a Timestamp into a Column……Page 488
Selecting Data from a Table……Page 489
Select All Data from a Table……Page 490
Request One Column……Page 491
Request Multiple Columns……Page 492
Request Rows and Columns……Page 493
AND, OR, and NOT Clauses……Page 494
Join Multiple Compound Expressions……Page 495
Equal and Not Equal Operators……Page 496
Less Than and Greater Than Operators……Page 498
Less Than or Equal to and Greater Than or Equal To……Page 499
Between Operator……Page 500
IS NULL Operator……Page 501
DISTINCT Modifier……Page 502
IN Modifier……Page 503
Number of Columns in ResultSet……Page 504
Column Size……Page 505
Update Row and Column……Page 506
Update Multiple Rows……Page 507
Delete a Row from a Table……Page 511
Joining Tables……Page 512
Join Two Tables……Page 515
Parent-Child Join……Page 516
Multiple Comparison Join……Page 517
Multitable Join……Page 518
Create a Column Name Qualifier……Page 519
Create a Table Alias……Page 520
Inner and Outer Joins……Page 521
Calculating Data……Page 525
SUM()……Page 527
MIN()……Page 528
COUNT()……Page 529
Retrieve Multiple Counts……Page 530
Calculate a Subset of Rows……Page 531
Calculate Without Using Built-in Functions……Page 532
Grouping and Ordering Data……Page 533
GROUP BY……Page 534
Group Multiple Columns……Page 535
Conditional Grouping……Page 536
Sorting Data……Page 537
Sorting on Derived Data……Page 539
Subqueries……Page 540
Create a Subquery……Page 541
Conditional Testing……Page 542
Rules for Using VIEWs……Page 546
Create a VIEW……Page 548
Create a Horizontal VIEW……Page 549
Group and Sort VIEWs……Page 550
Modify a VIEW……Page 551
Part IV J2ME Personal Information Manager Profile……Page 554
12 Personal Information Manager……Page 556
PIM Databases……Page 557
The Contact Database……Page 559
The Event Database……Page 560
The To Do Database……Page 561
A Model PIM Application……Page 562
Quick Reference Guide……Page 578
Part V J2ME Networking and Web Services……Page 594
13 Generic Connection Framework……Page 596
The Connection……Page 597
Connection and Streams……Page 598
Creating an HTTP Connection……Page 601
Reading Data from an HTTP Connection……Page 603
The File Protocol……Page 610
Socket……Page 613
Communication Management Using HTTP Commands……Page 618
HttpConnection……Page 619
Session Management……Page 629
Transmit as a Background Process……Page 631
Quick Reference Guide……Page 635
14 Web Services……Page 638
The Tier……Page 639
Clients, Resources, and Components……Page 641
J2EE Multi-Tier Web Services Architecture……Page 642
Classification of Clients……Page 645
Web Tier Implementation……Page 646
Enterprise JavaBeans Tier Implementation……Page 647
Enterprise Information Systems Tier Implementation……Page 648
The WSDL Document……Page 650
Message Element……Page 653
portType Element……Page 654
Binding Element……Page 655
Service Element……Page 656
J2ME MIDlets and Web Services……Page 657
Holder Classes……Page 658
SOAP Basics……Page 660
The SOAP Message and Delivery Structure……Page 661
WSDL and SOAP……Page 662
SOAP One-Way Transmission Primitive……Page 663
SOAP Request-Response Transmission Primitive……Page 664
SOAP Operation Element……Page 666
SOAP Header Element……Page 667
WSDL and HTTP Binding……Page 668
Quick Reference Guide……Page 670
Appendix: Quick Reference Guide……Page 674
Index……Page 742

Reviews

There are no reviews yet.

Be the first to review “J2ME, the complete reference”
Shopping Cart
Scroll to Top