Learning Wireless Java_ Help for New J2ME Developers [Mahmoud 2002-01-11].pdf
(
1433 KB
)
Pobierz
15393842 UNPDF
Learning Wireless Java
Publisher : O'Reilly
Pub Date : December 2001
ISBN : 0-59600-243-2
Pages : 262
Table of
Contents
Learning Wireless Java
is for Java developers who want to create applications for the
Micro Edition audience using the Connected, Limited Device Configuration and the
Mobile Information Device Profile (MIDP). These APIs specifically for devices such as
mobile phones and pagers, allowing programmers to create MIDlet applications. This
book offers a solid introduction to J2ME and MIDP, including the javax.microedition
classes, as well as classes surrounding the features of the various platforms that the J2ME
supports.
By
Qusay Mahmoud
Brought to you by ownSky!!
Table of Content
Table of Content
.................................................................................................................. i
Preface
............................................................................................................................... vii
Audience
........................................................................................................................ vii
Contents of This Book
................................................................................................. vii
Comments and Questions
........................................................................................... ix
Acknowledgments
.......................................................................................................... x
Part I: Introducing Java 2 Platform, Micro Edition (J2ME)
............................................... 1
Chapter 1. Overview of J2ME
........................................................................................... 2
1.1 What Is J2ME?
......................................................................................................... 2
1.2 Downloading the J2ME Wireless Toolkit
............................................................. 6
1.3 A Simple Example
................................................................................................... 8
Chapter 2. The Connected Limited Device Configuration (CLDC)
........................... 15
2.1 Examining the CLDC in Detail
............................................................................. 15
2.2 Using the Standalone CLDC and KVM
.............................................................. 22
2.3 CLDC Next Generation
......................................................................................... 24
Chapter 3. The Mobile InformationDevice Profile (MIDP)
.......................................... 25
3.1 Mobile Information Devices
.................................................................................. 25
3.2 More About MIDlets
.............................................................................................. 28
Part II: Programming with the CLDCand the MIDP
......................................................... 33
Chapter 4. Working with MIDlets
................................................................................... 34
4.1 The Application Manager
..................................................................................... 35
4.2 Creating MIDlets
.................................................................................................... 36
Chapter 5. MIDP GUI Programming
.............................................................................. 48
5.1 Why Not Reuse the AWT?
................................................................................... 48
5.2 The MIDP GUI APIs
.............................................................................................. 48
5.3 The High-Level MIDP APIs
.................................................................................. 51
5.4 Creating Low-Level GUI Components
............................................................... 72
Chapter 6. MIDP Events
.................................................................................................. 78
6.1 Screen Navigation
................................................................................................. 78
6.2 Handling Low-Level Events
................................................................................. 89
Chapter 7. Networking
..................................................................................................... 94
7.1 Generic Connections
............................................................................................ 94
7.2 MIDP Connectivity
................................................................................................. 96
7.3 The HTTP Programming Model
.......................................................................... 99
7.4 Invoking Remote Applications from MIDlets
................................................... 100
7.5 Wireless Session Tracking
................................................................................. 111
7.6 MIDlet Networking Security
................................................................................ 112
Chapter 8. Database Programming
............................................................................. 113
8.1 The Record Management System
.................................................................... 113
8.2 Programming with the RMS
............................................................................... 114
Chapter 9. The MIDP for Palm OS
.............................................................................. 129
9.1 Installing the MIDP for Palm OSon the Windows Platform
........................... 129
9.2 Developing New Applications
............................................................................ 132
9.3 PRC Command-Line Conversion
...................................................................... 137
9.4 Advanced Java Applications
.............................................................................. 138
9.5 A Final Thought
................................................................................................... 140
Part III: API Quick Reference
............................................................................................ 141
Appendix A. The java.io Package
................................................................................ 142
java.io.ByteArrayInputStream.................................................................................. 142
java.io.ByteArrayOutputStream ............................................................................... 143
java.io.DataInput ...................................................................................................... 143
java.io.DataInputStream ........................................................................................... 143
ii
java.io.DataOutput.................................................................................................... 144
java.io.DataOutputStream ........................................................................................ 145
java.io.EOFException .............................................................................................. 145
java.io.InputStream .................................................................................................. 146
java.io.InputStreamReader ....................................................................................... 146
java.io.InterruptedIOException ................................................................................ 147
java.io.IOException.................................................................................................. 147
java.io.OutputStream................................................................................................ 147
java.io.OutputStreamWriter ..................................................................................... 148
java.io.PrintStream ................................................................................................... 148
java.io.Reader ........................................................................................................... 149
java.io.UnsupportedEncodingException .................................................................. 149
java.io.UTFDataFormatException ........................................................................... 150
java.io.Writer............................................................................................................ 150
Appendix B. The java.lang Package
........................................................................... 151
java.lang.ArithmeticException ................................................................................. 152
java.lang.ArrayIndexOutOfBoundsException.......................................................... 152
java.lang.ArrayStoreException................................................................................. 152
java.lang.Boolean ..................................................................................................... 152
java.lang.Byte ........................................................................................................... 153
java.lang.Character ................................................................................................... 153
java.lang.Class.......................................................................................................... 154
java.lang.ClassCastException................................................................................... 155
java.lang.ClassNotFoundException ......................................................................... 155
java.lang.Error .......................................................................................................... 155
java.lang.Exception .................................................................................................. 155
java.lang.IllegalAccessException............................................................................. 156
java.lang.IllegalArgumentException ........................................................................ 156
java.lang.IllegalMonitorStateException ................................................................... 156
java.lang.IllegalStateException ................................................................................ 156
java.lang.IllegalThreadStateException..................................................................... 157
java.lang.IndexOutOfBoundsException................................................................... 157
java.lang.InstantiationException .............................................................................. 157
java.lang.Integer ....................................................................................................... 157
java.lang.InterruptedException................................................................................. 158
java.lang.Long .......................................................................................................... 158
java.lang.Math .......................................................................................................... 159
java.lang.NegativeArraySizeException.................................................................... 159
java.lang.NullPointerException................................................................................ 160
java.lang.NumberFormatException.......................................................................... 160
java.lang.Object........................................................................................................ 160
java.lang.OutOfMemoryError .................................................................................. 161
java.lang.Runnable ................................................................................................... 161
java.lang.Runtime..................................................................................................... 161
java.lang.RuntimeException..................................................................................... 162
java.lang.SecurityException ..................................................................................... 162
java.lang.Short.......................................................................................................... 162
java.lang.String......................................................................................................... 163
java.lang.StringBuffer .............................................................................................. 164
java.lang.StringIndexOutOfBoundsException ......................................................... 165
java.lang.System....................................................................................................... 165
java.lang.Thread ....................................................................................................... 166
java.lang.Throwable ................................................................................................. 167
java.lang.VirtualMachineError................................................................................. 167
Appendix C. The java.util Package
.............................................................................. 168
iii
java.util.Calendar...................................................................................................... 168
java.util.Date ............................................................................................................ 169
java.util.Enumeration ............................................................................................... 170
java.util.EmptyStackException ................................................................................ 170
java.util.Hashtable .................................................................................................... 170
java.util.NoSuchElementException.......................................................................... 171
java.util.Random ...................................................................................................... 171
java.util.Stack ........................................................................................................... 172
java.util.Timer .......................................................................................................... 172
java.util.TimerTask .................................................................................................. 172
java.util.TimeZone ................................................................................................... 173
java.util.Vector ......................................................................................................... 174
Appendix D. The javax.microedition.io Package
....................................................... 175
javax.microedition.io.Connection ............................................................................ 175
javax.microedition.io.ContentConnection................................................................ 175
javax.microedition.io.Datagram ............................................................................... 175
javax..microedition.io.DatagramConnection............................................................ 176
javax.microedition.io.HttpConnection ..................................................................... 176
javax.microedition.io.InputConnection .................................................................... 177
javax.microedition.io.OutputConnection ................................................................. 178
javax.microedition.io.StreamConnection ................................................................. 178
javax.microedition.io.StreamConnectionNotifier..................................................... 178
javax.microedition.io.Connector .............................................................................. 178
javax.microedition.io.ConnectionNotFoundException ............................................ 179
Appendix E. The javax.microedition.lcdui Package
.................................................. 180
javax.microedition.lcdui.Choice............................................................................... 180
javax.microedition.lcdui.CommandListener ............................................................ 181
javax.microedition.lcdui.ItemStateListener.............................................................. 181
javax.microedition.lcdui.Alert.................................................................................. 181
javax.microedition.lcdui.AlertType.......................................................................... 182
javax.microedition.lcdui.Canvas .............................................................................. 183
javax.microedition.lcdui.ChoiceGroup .................................................................... 184
javax.microedition.lcdui.Command ......................................................................... 184
javax.microedition.lcdui.DateField .......................................................................... 185
javax.microedition.lcdui.Display.............................................................................. 186
javax.microedition.lcdui.Displayable ....................................................................... 186
javax.microedition.lcdui.Font................................................................................... 187
javax.microedition.lcdui.Form ................................................................................. 187
javax.microedition.lcdui.Gauge................................................................................ 188
javax.microedition.lcdui.Graphics............................................................................ 188
javax.microedition.lcdui.Image ................................................................................ 189
javax.microedition.lcdui.ImageItem......................................................................... 190
javax.microedition.lcdui.Item................................................................................... 190
javax.microedition.lcdui.List.................................................................................... 190
javax.microedition.lcdui.Screen ............................................................................... 191
javax.microedition.lcdui.StringItem ......................................................................... 191
javax.microedition.lcdui.TextBox ............................................................................ 191
javax.microedition.lcdui.TextField .......................................................................... 192
javax.microedition.lcdui.Ticker................................................................................ 193
Appendix F. The javax.microedition.midlet Package
................................................ 194
javax.microedition.midlet.MIDlet ............................................................................ 194
javax.microedition.midlet.MIDletStateChangeException........................................ 194
Appendix G. The javax.microedition.rms Package
................................................... 195
javax.microedition.rms.RecordComparator ............................................................. 195
javax.microedition.rms.RecordEnumeration............................................................ 195
iv
Plik z chomika:
musli_com
Inne pliki z tego folderu:
Big Java Late Objects [Horstmann 2012-02-01].pdf
(167477 KB)
Data Structures_ Abstraction and Design using Java (2nd ed.) [Koffman & Wolfgang 2010-01-26].pdf
(190252 KB)
Big Java Early Objects (5th ed.) [Horstmann 2013-01-04].pdf
(145099 KB)
Data Abstraction and Problem Solving with Java_ Walls and Mirrors (3rd ed.) [Prichard & Carrano 2010-10-30] (photocopier quality).pdf
(110506 KB)
A Little Java, a Few Patterns [Felleisen & Friedman 1997-12-19].pdf
(14847 KB)
Inne foldery tego chomika:
3D Design - Programming
ActionScript
Actionscript - Flash - Flex - Air
Ada
ADO
Zgłoś jeśli
naruszono regulamin