Anleitung Sun Microsystems, modell J2ME
Hersteller: Sun Microsystems Dateigröße: 690.11 kb Dateiname: a556ab0b-2ab5-4b57-9040-dfda496e213d.pdf
Unterrichtssprache:
|
|
|
|
Link zum kostenlosen Download Hinweise finden Sie am Ende der Seite
Anleitung Zusammenfassung
Chapter 2 describes the development processes for creating and running MIDlets. Chapter 3 explains how to work with projects in KToolbar. You’ll learn how to adjust project properties, manipulate MIDlets, work with the push registry, and understand the project directory structure. Chapter 4 describes the emulator and explains how to adjust its options and take advantage of its many features. Chapter 5 shows how you can examine the performance of your application using the method profiler, memory monitor, and network monitor. Chapter 6 describes how to sign MIDlet suites and manage keys and certificates. J2ME Wireless Toolkit User’s Guide • October 2004 Chapter 7 details support for running and testing wireless messaging applications. Chapter 8 explains how the J2ME Wireless Toolkit supports the Mobile Media API. Chapter 9 contains information about developing 3D graphics content. Chapter 10 describes how the toolkit implements access to local files and personal information like contacts and calendar appointments. Chapter 11 covers the toolkit’s Bluetooth and OBEX simulation environment. Chapter 12 shows how to use the web services stub generator. Chapter 12 shows how to use the web services stub generator. Appendix A describes the application demonstrations that are included in the J2ME Wireless Toolkit. Appendix B explains how to use the functionality of the J2ME Wireless Toolkit from the command line. Appendix C describes internationalization features in the J2ME Wireless Toolkit. Preface xi Typographic Conventions Typeface Meaning Examples AaBbCc123 The names of commands, files, and directories; on-screen Edit your .login file. Use ls -a to list all files. computer output % You have mail. AaBbCc123 What you type, when contrasted with on-screen % su Password: computer output AaBbCc123 Book titles, new words or terms, words to be emphasized Read Chapter 6 in the User’s Guide. These are called class options. You must be superuser to do this. Command-line variable; replace with a real name or value To delete a file, type rm filename. {AaBbCc.dir} Variable file names and directories. In the book, {toolkit} always refers to the installation directory of the J2ME Wireless Toolkit. Accessing Documentation Online The following sites provide technical documentation related to Java technology. We Welcome Your Comments We are interested in improving our documentation and welcome your comments and suggestions. You can email your comments to us at: wtk-comments@sun.com xii J2ME Wireless Toolkit User’s Guide • October 2004 CHAPTER 1 Introduction This book describes how to use the J2ME Wireless Toolkit. The J2ME Wireless Toolkit is a set of tools that makes it possible to create applications for mobile phones and other wireless devices. Although it is based on the Mobile Information Device Profile (MIDP) 2.0, the J2ME Wireless Toolkit also supports a handful of optional packages, making it a widely capable development toolkit. 1.1 Quick Start If you’d like to get started right away, try the demonstration applications that are included with the J2ME Wireless Toolkit. To run the demonstrations, start KToolbar. On Windows you’ll do this by choosing Start > Programs > J2ME Wireless Toolkit 2.2 > KToolbar.1 You’ll see a window like this: 1. Depending on how Windows is configured, you might need to choose Start > All Programs instead of Start > Programs. FIGURE 1 The KToolbar window Next, click on the Open Project... button to open a demonstration application. You'll see a list of all the available applications. Pick one of them and click on the Open Project button in the dialog. Once the application is open, all you need to do is press the Run button. The emulator will pop up running the example application. Most demonstrations are self-explanatory, but some have additional instructions. See Appendix A, “Application Demonstrations,” for additional details. All the source code for the demonstration applications is available in the {toolkit}\apps directory. Each demonstration has its own project directory. Inside the project directory, the source files are in the src directory. For example, the source code for the games demonstration is in {toolkit}\apps\games\src directory. 1.2 The Tools in the Toolkit The J2ME Wireless Toolkit has three main components: ¦ KToolbar automates many of the tasks involved in creating MIDP applications. ¦ The emulator is a simulated mobile phone. It is useful for testing MIDP applications. ¦ A collection of utilities provides other useful functionality, including a text messaging console and cryptographic utilities. J2ME Wireless Toolkit User’s Guide • October 2004 KToolbar is the center of the toolkit. You can use it to build applications, launch the emulator, and start the utilities. Alternately, the emulator and utilities can be run by themselves, which is useful in many situations. If you want to demonstrate MIDP applications, for example, it...