Wireless programming with J2ME : cracking the code

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Dreamtech
Publisher: New York, NY [u.a.] Hungry Minds
Year: 2002

Language: English
Pages: 392

Front of Book......Page 1
General Info......Page 2
Credits......Page 3
About the Authors......Page 4
Acknowledgments......Page 5
Dedication......Page 6
What this Book Covers......Page 7
How the Book Is Organized......Page 8
Who Should Read this Book......Page 9
Contents......Page 11
What J2ME is about......Page 17
What J2ME offers......Page 18
The K Virtual Machine (KVM)......Page 19
The C Virtual Machine (CVM)......Page 20
CLDC......Page 21
CDC......Page 23
Mobile Information Device Profile (MIDP)......Page 24
Other profiles......Page 25
Our First J2ME Application......Page 26
PersonalJava......Page 28
Java Card......Page 29
Summary......Page 31
Limited processor speed......Page 32
Limited networking and bandwidth......Page 33
Wide variety of input/output methods......Page 34
Size, shape, and weight......Page 36
Operating systems for mobile devices......Page 37
Conserve memory to the maximum extent......Page 38
Make your suite light......Page 40
Use low-level UI APIs in MIDP......Page 41
Summary......Page 42
java.io package......Page 43
Brief introduction to commonly used packages......Page 44
Generic Connection Framework......Page 47
Kjava API......Page 49
Spotlet......Page 52
Button......Page 53
RadioButton and RadioGroup......Page 54
ScrollTextBox......Page 55
Database......Page 56
Installation of CLDC......Page 57
Compiling, preverifying, and running applications......Page 58
TextField_Spotlet......Page 59
ScrollTextBox_Spotlet......Page 61
HelpDisplay_Spotlet......Page 63
CheckRadio_Spotlet......Page 65
HttpCheck_Spotlet......Page 68
Socket_Check......Page 71
Summary......Page 78
MIDlets and MIDlet States......Page 79
MIDP API......Page 80
Application Lifecycle Package......Page 81
User Interface Package......Page 82
Interface CommandListener......Page 83
Alert Class......Page 84
ChoiceGroup Class......Page 85
Command Class......Page 86
Form Class......Page 87
Gauge Class......Page 88
Graphics Class......Page 89
Class List......Page 91
Class TextField......Page 92
Class TextBox......Page 93
Persistence Package......Page 94
Class RecordStore......Page 95
Installation of MIDP and Running Applications......Page 98
run.bat......Page 99
sample.bat......Page 100
J2ME Wireless Toolkit......Page 101
MIDP for Palm......Page 102
TextFieldCheck......Page 107
LabelUI......Page 109
ChoiceGroupUI......Page 111
TickerUI......Page 114
MenuCheck......Page 115
AddressBook......Page 117
TestHTTP......Page 125
Summary......Page 127
Structure of XML......Page 128
XML Parsing......Page 130
Working with kXML......Page 131
Application description......Page 133
Summary......Page 140
User Interface......Page 141
How It Works......Page 142
TestManager flow chart......Page 148
TestManager.java......Page 150
MainScreen.java......Page 155
QuestionParser.java......Page 171
Books.asp......Page 175
TestFile.asp......Page 177
Summary......Page 179
Running the Application......Page 180
How It Works......Page 181
Summary......Page 199
Working with the CDC Specification......Page 201
The PersonalJava Emulation Environment......Page 202
The Pocket PC emulation environment......Page 204
JavaCheck......Page 205
How It Works......Page 209
How to Run......Page 216
MP3Player.java......Page 217
NetDeamon.java......Page 220
GUI.java......Page 223
Track.java......Page 226
MP3Client.java......Page 229
ServerDialog.java......Page 233
Summary......Page 234
User Interface......Page 235
How It Works......Page 236
Source Code......Page 242
Summary......Page 290
User Interface......Page 291
How It Works......Page 294
MainClass.java......Page 307
DataParser.java......Page 310
Weather.java......Page 321
News.java......Page 327
MoviesList.java......Page 335
Summary......Page 343
User Interface......Page 345
How It Works......Page 346
Source Code......Page 350
Code explanation......Page 355
MainClass.java......Page 356
Summary......Page 370
Differences in Java language support and virtual machines......Page 371
Problems due to device variety......Page 372
Differences in APIs......Page 373
Reducing the GUI......Page 374
Using JavaCheck......Page 375
Analyzing the design......Page 377
Reducing the GUI......Page 378
Is some functionality unnecessary or impossible?......Page 379
Listing the items consuming resources......Page 380
Summary......Page 381
Source code......Page 383
Troubleshooting......Page 384
Index......Page 385