Javatm Platform Micro Edition Software Development Kit

Total Page:16

File Type:pdf, Size:1020Kb

Javatm Platform Micro Edition Software Development Kit JavaTM Platform Micro Edition Software Development Kit Version 3.0 Sun Microsystems, Inc. www.sun.com April 2009 [email protected] Copyright © 2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and in other countries. U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Use is subject to license terms. This distribution may include materials developed by third parties. Sun, Sun Microsystems, the Sun logo, Java, JavaFX, Java 2D, J2SE, Java SE, J2ME, Java ME, Javadoc, JavaTest, JAR, JDK, NetBeans, phoneME, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries. Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited. DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Copyright © 2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, États-Unis. Tous droits réservés. Sun Microsystems, Inc. détient les droits de propriété intellectuels relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier, et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plus des brevets américains listés à l'adresse http://www.sun.com/patents et un ou les brevets supplémentaires ou les applications de brevet en attente aux États - Unis et dans d'autres pays. Utilisation est soumise aux termes du contrat de licence. Cette distribution peut inclure des éléments développés par des tiers. Sun, Sun Microsystems, le logo Sun, Java, JavaFX, J2SE, Java 2D, Java SE, J2ME, Java ME, Javadoc, JavaTest, JAR, JDK, NetBeans, phoneME, and Solaris sont des marques de fabrique ou des marques déposées enregistrées de Sun Microsystems, Inc., ou ses filiales, aux États-Unis et dans d'autres pays. Les produits qui font l'objet de ce manuel d'entretien et les informations qu'il contient sont régis par la législation américaine en matière de contrôle des exportations et peuvent être soumis au droit d'autres pays dans le domaine des exportations et importations. Les utilisations finales, ou utilisateurs finaux, pour des armes nucléaires, des missiles, des armes biologiques et chimiques ou du nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou réexportations vers des pays sous embargo des États-Unis, ou vers des entités figurant sur les listes d'exclusion d'exportation américaines, y compris, mais de maniéré non exclusive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations de des produits ou des services qui sont régi par la législation américaine sur le contrôlé des exportations et la liste de ressortissants spécifiquement désignes, sont rigoureusement interdites. LA DOCUMENTATION EST FOURNIE "EN L'ÉTAT" ET TOUTES AUTRES CONDITIONS, DÉCLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISÉE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE À LA QUALITÉ MARCHANDE, À L'APTITUDE À UNE UTILISATION PARTICULIÈRE OU À L'ABSENCE DE CONTREFAÇON. Please Recycle Contents 1. Getting Started 1 Quick Start 1 Tips for Legacy Toolkit Users 2 2. Java ME Platform SDK Features 5 Emulation Platforms 5 CLDC and MIDP Stack 6 CDC Stack 6 BD-J Stack 7 JavaFX Platform 7 Managing Java Platforms 8 J2SE and CDC Platforms 9 J2ME Platforms (CLDC and MIDP) 9 Adding a Java Platform 9 Selecting a Platform Type 10 Choose Platform Folder and Name (Java SE and CDC) 10 Choose Location (JavaSE and CDC) 11 Create a Platform for Legacy CDC Projects 11 Choose Java ME MIDP Platform Folders 11 Choose Custom Java ME MIDP Platform Emulator 12 Support for Third-Party Emulators and Real Devices 13 Automatic Update 14 Using the Plugins Manager 14 Installing a Plugin Globally 16 3. Using Sample Projects 19 Running a Project 19 [email protected] Troubleshooting 21 Sample Project Overview 21 Configuring the Web Browser and Proxy Settings 24 Resolving Reference Problems 24 Running MIDP and CLDC Sample Projects 25 Running the Demos Sample Project 26 Running FPDemo 32 Running Games 32 Running Network Demo 33 Running PhotoAlbum 34 Running UIDemo 34 4. Creating and Editing Projects 37 About Projects 38 CLDC Projects 38 CDC Projects 39 Creating a CLDC Project 40 Choose Project 40 Name and Location 41 Platform Selection 41 Specify WTK Project 42 Creating a CDC Project 42 Choose Project (CDC) 43 Platform Selection (CDC) 44 Specify CDC Toolkit Project 44 Working With Projects 44 Viewing Project Files 45 Creating a New MIDlet 46 Importing MIDP Projects 47 Importing CDC Projects 47 Adding Files to a Project 48 Find in Files 48 5. Viewing and Editing Project Properties 51 Viewing General Project Properties 52 Selecting a Platform 52 Editing Application Descriptor Properties 53 CDC Attributes 53 MIDP Attributes 53 MIDlets 54 Push Registry 56 API Permissions 57 Building a Project 57 Configuring Ant 58 Compiling 59 Adding Libraries and Resources 59 Creating JAR and JAD Files (Packaging) 60 Obfuscating 60 Signing 60 Exporting a Key 61 Running Settings 62 Running a MIDP Project 62 Running a CDC Project 62 6. Running Projects in the Emulator 65 Understanding the Emulator 65 Viewing Device Properties 66 Platform Properties 67 Device Information 67 Device Properties 67 Setting Device Properties 68 Running a Project from the Device Selector 68 Running Projects Simultaneously on a Single Device 69 Emulator Options 70 Adding a Device Instance 71 7. Searching the WURFL Device Database 73 Searching for Devices 73 Filtering the WURFL Search 75 8. Finding Files in the Multiple User Environment 77 Switching Users 77 Installation Directories 78 User Directories 79 /javame-sdk 79 /javame-sdk/3.0/work 80 /javame-sdk/toolbar/3.0 80 /JavaMESDKProjects 80 9. Profiling Applications 81 Saving Profiler Data 81 Loading Profiler Data 83 Viewing Profiler Data 83 Saving Customized Snapshots and Images 86 Loading a Customized Snapshot 86 10. Monitoring Network Traffic 87 Using the Network Monitor 87 Filtering Messages 89 Sorting Messages 89 Saving and Loading Network Monitor Information 90 Clearing the Message Tree 90 11. Lightweight UI Toolkit 91 Adding the LWUIT Library 91 Using the LWUIT Resource Manager 92 12. Security and MIDlet Signing 93 Security Domains 94 Setting Security Domains 95 Specifying the Security Domain for an Emulator 95 Specifying the Security Domain for a Project 95 Signing a Project 95 Managing Keystores and Key Pairs 96 Working With Keystores and Key Pairs 97 Managing Root Certificates 99 13. BD-J Support 101 Creating a Stubs for BD-J Platform Project 101 Compiling, Deploying, and Running a Stubs for BD-J Platform Project 103 14. CLDC Emulation on a Windows Mobile Device 105 CLDC Emulator Installation for a Device Running Windows Mobile 105 Testing On-device Debugging 115 15. Installing CLDC Emulation on a Windows Mobile Emulator 117 CLDC Installation for Windows Mobile 117 16. On-device Debugging 127 On-device Debugging Procedure 127 Attach a Command Line Debugger 128 Attach a Graphical Debugger 128 Sample CLDC Debugging Session 129 17. Command Line Reference 131 Launching the SDK 132 Running the Device Manager 132 Managing Device Addresses (device-address) 133 Running the Emulator From the Command Line 133 MIDlet Options 134 CDC Options 136 Debugging and Tracing Options 136 Building a Project from the Command Line 137 Checking Prerequisites 138 Compiling Class Files 138 Preverifying Class Files 138 Packaging a MIDLet Suite (JAR and JAD) 139 Command Line Security Features 140 Changing the Emulator’s Default Protection Domain 141 Signing MIDlet Suites (jadtool.exe) 141 Managing Certificates (MEKeyTool) 142 Generating Stubs (wscompile) 143 Running the Payment Console From the Command Line 145 Virtual Machine Memory Profiler (Java Heap Memory Observe Tool) 145 Running the Java Heap Memory Observe Tool 146 Viewing the Heap Snapshot 147 Running WMA Tool 147 smsreceive 148 cbsreceive 148 mmsreceive 148 smssend 150 cbssend 150 mmssend 150 18. Logs 153 Java ME Platform SDK GUI Logs 153 Device Manager Logs 153 Device Instance Logs 154 19. JSR Support 155 JCP APIs 156 20. JSR 75: PDA Optional Packages 159 FileConnection API 159 PIM API 161 Running PDAPDemo 161 Browsing Files 162 The PIM API 164 21. JSR 82: Bluetooth and OBEX Support 167 Bluetooth Simulation Environment 167 OBEX Over Infrared 168 Setting Bluetooth and OBEX Preferences 168 OBEX Preferences 168 Bluetooth Internal Properties 168 Bluetooth System Properties 169 Bluetooth BCC Properties 169 Running the Bluetooth Demo 170 22. JSR 135: Mobile Media API Support 171 Media Types 172 Adaptive Multi-Rate (AMR) Content 172 Media Capture 172 MMAPI MIDlet Behavior 173 Ring Tones 173 Download Ring Tones 173 Ring Tone Formats 173 Running the MMAPI Sample Project 175 Running AudioDemo 175 Running MMAPIDemos 176 Running the Multimedia Sample Project 180 23.
Recommended publications
  • Incubating the Next Generation of Offshore Outsourcing Entrepreneurs
    Mobile Phone Programming Introduction Dr. Christelle Scharff Pace University, USA http://atlantis.seidenberg.pace.edu/wiki/mobile2008 Objectives Getting an overall view of the mobile phone market, its possibilities and weaknesses Providing an overview of the J2ME architecture and define the buzzwords that accompanies it Why mobile phones? Nowadays mobile phones outnumber desktop computers for Internet connections in the developer world A convenient and simpler alternative to the desktop/laptop for all (developed and developing countries) Mobile phones are computers! Some numbers and important facts: • Target of 10 million iphones sales by the end of 2008 (just one year after being launched) • Google phone to be launched in 2008 • 70% of the world’s mobile subscriptions are in developing countries, NY Times April 13, 2008 Global Handset Sales by Device Type http://linuxdevices.com/files/misc/StrategyAnalytics- mobilephone-segments.jpg Devices A wide variety of devices by the main vendors: • E.g, Nokia, Motoral, Sony Ericson A wide variety of operating systems • E.g., Blackberry, Palm OS, Windows CE/Mobile, Symbian, motomagx, linux A wide variety of development environments • E.g., Java ME, Qualcomm’s BREW, Google’ Android, Google App Engine (GAE) for mobile web applications, JavaFX Programming languages: • Java, Python, Flast-lith, Objective C Operating Systems http://mobiledevices.kom.aau.dk Mobile Web Access to wireless data services using a mobile device cHTML (Compact HTML) is a subset of HTML that excludes JPEG images,
    [Show full text]
  • Development of Mobile Phone Game Based on Java ME
    Yang Liu Development of Mobile Phone Game Based on Java ME Bachelor’s Thesis Information Technology May 2011 DESCRIPTION Date of the bachelor's thesis th 15 May, 2011 Author(s) Degree programme and option Yang Liu Information Technology Name of the bachelor's thesis Development of Mobile Phone Game Based on Java ME Abstract Recently, mobile phones have become more and more widespread in more than one aspect. Meanwhile, a large number of advanced features have also been applied into mobile devices. As we know, mobile phone game is one of them. In this final thesis, I develop a Chinese Chess game. Chinese Chess, also called Xiang Qi, is one of the most popular and oldest board games worldwide, which is more or less similar to Western Chess related to the appearance and regulations. In order to spread China culture and make individuals realize how fun and easy this game is, I introduce this Chinese Chess game as the topic in terms of my final thesis. In this final thesis, I use API (JSR 118) to build a user interface so as to set the board and pieces in the first place. Thereafter, some relevant basic rules are drawn up through logical control. This project is designated to be run on Java ME platform and Java SDK simulation software. Subject headings, (keywords) Java ME, JDK, Java SDK, MIDP, CLDC, API, Chinese Chess Pages Language URN 63 p.+app.28 English Remarks, notes on appendices Tutor Employer of the bachelor's thesis Matti Koivisto Mikkeli University of Applied Sciences ACKNOWLEDGEMENT In the first place, I would like to represent my greatest appreciation to my supervisor Mr.
    [Show full text]
  • JAVA User's Guide Siemens Cellular Engine
    s JAVA User's Guide Siemens Cellular Engine Version: 08 DocID: TC65_AC75_JAVA User's Guide_V08 Supported products: TC65, TC65 Terminal, AC75 JAVA™ Users Guide JAVA User's Guide s Confidential / Released Document Name: JAVA User's Guide Supported products: TC65, TC65 Terminal, AC75 Version: 08 Date: June 12, 2006 DocId: TC65_AC75_JAVA User's Guide_V08 Status: Confidential / Released General Notes Product is deemed accepted by recipient and is provided without interface to recipient’s products. The documentation and/or product are provided for testing, evaluation, integration and information purposes. The documentation and/or product are provided on an “as is” basis only and may contain deficiencies or inadequacies. The documentation and/or product are provided without warranty of any kind, express or implied. To the maximum extent permitted by applicable law, Siemens further disclaims all warranties, including without limitation any implied warranties of merchantability, completeness, fitness for a particular purpose and non-infringement of third-party rights. The entire risk arising out of the use or performance of the product and documentation remains with recipient. This product is not intended for use in life support appliances, devices or systems where a malfunction of the product can reasonably be expected to result in personal injury. Applications incorporating the described product must be designed to be in accordance with the technical specifications provided in these guidelines. Failure to comply with any of the required procedures can result in malfunctions or serious discrepancies in results. Furthermore, all safety instructions regarding the use of mobile technical systems, including GSM products, which also apply to cellular phones must be followed.
    [Show full text]
  • Intro to Opengl
    Intro to OpenGL CS4620 Lecture 14 Guest Instructor: Nicolas Savva What is OpenGL? ● Open Graphics Library ● A low level API for 2D/3D rendering with the Graphics Hardware (GPU) ● Cross-platform (Windows, OS X, Linux, iOS, Android, ...) ● Developed by SGI in 1992 – 2014: OpenGL 4.5 – 2008: OpenGL 3.0 – 2006: OpenGL 2.1 ● Main alternative: DirectX/3D Cornell CS4620 Fall 2015 How does it fit in? ● Tap massive power of GPU hardware to render images ● Use GPU without caring about the exact details of the hardware Cornell CS4620 Fall 2015 CPU and GPU memory CPU BUS GPU SHADERS B B U U S S B U S F GPU MEMORY B SYSTEM MEMORY Display Cornell CS4620 Fall 2015 What OpenGL does for us ● Controls GPU ● Lets user specify resources...: – Geometry (vertices and primitives) – Textures – Shaders (programmable pieces of rendering pipeline) – Etc. ● ...and use them: – Rasterize and draw geometry Cornell CS4620 Fall 2015 How we will use OpenGL ● OpenGL version – We use 2.x-3.x (plus extensions) – Code avoids older, deprecated parts of OpenGL standard ● LWJGL – Lightweight Java Game Library – Java bindings for OpenGL API ● CS 4620/4621 Framework – Simplifies creating and using OpenGL resources Cornell CS4620 Fall 2015 LWJGL ● OpenGL originally written for C. ● LWJGL contains OpenGL binding for Java www.lwjgl.org/ ● Gives Java interface to C OpenGL commands ● Manages framebuffer (framebuffer: a buffer that holds the image that is displayed on the monitor) Cornell CS4620 Fall 2015 MainGame ● A window which can display GameScreens ● Initializes OpenGL context
    [Show full text]
  • CDC: Java Platform Technology for Connected Devices
    CDC: JAVA™ PLATFORM TECHNOLOGY FOR CONNECTED DEVICES Java™ Platform, Micro Edition White Paper June 2005 2 Table of Contents Sun Microsystems, Inc. Table of Contents Introduction . 3 Enterprise Mobility . 4 Connected Devices in Transition . 5 Connected Devices Today . 5 What Users Want . 5 What Developers Want . 6 What Service Providers Want . 6 What Enterprises Want . 6 Java Technology Leads the Way . 7 From Java Specification Requests… . 7 …to Reference Implementations . 8 …to Technology Compatibility Kits . 8 Java Platform, Micro Edition Technologies . 9 Configurations . 9 CDC . 10 CLDC . 10 Profiles . 11 Optional Packages . 11 A CDC Java Runtime Environment . 12 CDC Technical Overview . 13 CDC Class Library . 13 CDC HotSpot™ Implementation . 13 CDC API Overview . 13 Application Models . 15 Standalone Applications . 16 Managed Applications: Applets . 16 Managed Applications: Xlets . 17 CLDC Compatibility . 18 GUI Options and Tradeoffs . 19 AWT . 19 Lightweight Components . 20 Alternate GUI Interfaces . 20 AGUI Optional Package . 20 Security . 21 Developer Tool Support . 22 3 Introduction Sun Microsystems, Inc. Chapter 1 Introduction From a developer’s perspective, the APIs for desktop PCs and enterprise systems have been a daunting combination of complexity and confusion. Over the last 10 years, Java™ technology has helped simplify and tame this world for the benefit of everyone. Developers have benefited by seeing their skills become applicable to more systems. Users have benefited from consistent interfaces across different platforms. And systems vendors have benefited by reducing and focusing their R&D investments while attracting more developers. For desktop and enterprise systems, “Write Once, Run Anywhere”™ has been a success. But if the complexities of the desktop and enterprise world seem, well, complex, then the connected device world is even scarier.
    [Show full text]
  • Web Services Edge East Conference & Expo Featuring FREE Tutorials, Training Sessions, Case Studies and Exposition
    JAVA & LINUX FOCUS ISSUE TM Java COM Conference: January 21-24, 2003 Expo: January 22-24, 2003 www.linuxworldexpo.com The Javits Center New York, NY see details on page 55 From the Editor Alan Williamson pg. 5 Java & Linux A Marriage Made in Heaven pg. 6 TCO for Linux Linux Fundamentals: Tools of the Trade Mike McCallister ...and J2EE Projects pg. 8 Programming Java in Linux – a basic tour $40010 60 Linux Vendors Life Is About Choices pg. 26 Feature: Managing HttpSession Objects2003 SAVEBrian A. Russell 8 PAGE CONFERENCE Create a well-designed session for a better Web appEAST INSERT PAGE18 63 Career Opportunities Bill Baloglu & Billy Palmieri DGE pg. 72 Integration: PackagingE Java Applications Ian McFarland for OS X Have great looking double-clickable applications 28 Java News ERVICES pg. 60 S EB Specifications: JCP Expert Group Jim Van Peursem JDJ-IN ExcerptsW Experiences – JSR-118 An inside look at the process 42 SPECIALpg. 61 INTERNATIONAL WEB SERVICES CONFERENCE & EXPO Letters to the Editor Feature: The New PDA Profile Jim Keogh OFFER!pg. 62 The right tool for J2ME developers 46 RETAILERS PLEASE DISPLAY UNTIL MARCH 31, 2003 Product Review: exe4j Jan Boesenberg by ej-technologies – a solid piece of software 56 Interview: JDJ Asks ...Sun on Java An exclusive chance to find out what’s going on at Sun 58 SYS -CON Blair Wyman MEDIA Cubist Threads: ‘(Frozen)’ A snow-packed Wyoming highway adventure 74 Everybody’s focused on exposing applications as Web services while letting someone else figure out how to connect them. We’re that someone else.
    [Show full text]
  • Oracle® Java ME Embedded Getting Started Guide for the Windows Platform Release 3.3 E35132-02
    Oracle® Java ME Embedded Getting Started Guide for the Windows Platform Release 3.3 E35132-02 June 2013 This book describes how to use Oracle Java ME SDK to develop embedded applications, using both the NetBeans and Eclipse Integrated Development Environments, on a Windows XP or Windows 7 platform. Oracle Java ME Embedded Getting Started Guide for the Windows Platform, Release 3.3 E35132-02 Copyright © 2012, 2013, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations.
    [Show full text]
  • Xlet-Based, IESG(Integrated Electronic Service Guide) in Ubiquitous Interactive TV Environment
    IJCSNS International Journal of Computer Science and Network Security, VOL.7 No.10, October 2007 183 Xlet-based, IESG(Integrated Electronic Service Guide) in Ubiquitous Interactive TV Environment Ho Yeon Jang † and † Nammee Moon †, Digital Media Lab.,Seoul University of Venture & Information, South Korea interactive TV service, mainly within the home, through a Summary standard-based digital TV set-top box. This paper discuss the outline of effective Integrated Electronic All terrestrial digital broadcasters adopting Advanced Service Guide(IESG) system and service in ubiquitous Television System Committee(ATSC) standard[12] have interactive TV environment. Recent interest in ubiquitous to use Program and System Information Protocol(PSIP)[2] digital television broadcast is business model related to for the EPG service, and Advanced Common Application interactive and enhanced application running on digital TV platforms. EPG is the core digital television service of Platform(ACAP)[3] for the interactive TV service. Cable which primary function is to provide viewers with operators adopting Open-CableTM standard[14] have to overview and schedule information of the current or use PSIP/SI[15][16] for the EPG service, and Open- upcoming television programs(transmitted in broadcast CableTM Application Platform Specification(OCAP)[17] transport streams). IESG service is designed to compose for the interactive TV service. Satellite digital broadcasters Electronic Program Guide(EPG), interactive TV service adopting Digital Video Broadcasting(DVB)[13] have to information such as TV portal service and genre information in use Service Information(SI)[18] for the EPG service, and interactive TV platform. Interactive TV platform includes Multimedia Home Platform(MHP)[19] for the interactive ATSC-ACAP, OpenCable-OCAP and DVB-MHP.
    [Show full text]
  • J2ME: the Complete Reference
    Color profile: Generic CMYK printer profile Composite Default screen Complete Reference / J2ME: TCR / Keogh / 222710-9 Blind Folio i J2ME: The Complete Reference James Keogh McGraw-Hill/Osborne New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto P:\010Comp\CompRef8\710-9\fm.vp Friday, February 07, 2003 1:49:46 PM Color profile: Generic CMYK printer profile Composite Default screen Complete Reference / J2ME: TCR / Keogh / 222710-9 / Front Matter Blind Folio FM:ii McGraw-Hill/Osborne 2600 Tenth Street Berkeley, California 94710 U.S.A. To arrange bulk purchase discounts for sales promotions, premiums, or fund-raisers, please contact McGraw-Hill/Osborne at the above address. For information on translations or book distributors outside the U.S.A., please see the International Contact Information page immediately following the index of this book. J2ME: The Complete Reference Copyright © 2003 by The McGraw-Hill Companies. All rights reserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. 1234567890 CUS CUS 019876543 ISBN 0-07-222710-9 Publisher Copy Editor Brandon A. Nordin Judith Brown Vice President & Associate Publisher Proofreader Scott Rogers Claire Splan Editorial Director Indexer Wendy Rinaldi Jack Lewis Project Editor Computer Designers Mark Karmendy Apollo Publishing Services, Lucie Ericksen, Tara A.
    [Show full text]
  • Visualization and Geometric Interpretation of 3D Surfaces Donya Ghafourzadeh
    LiU-ITN-TEK-A-13/011-SE Visualization and Geometric Interpretation of 3D Surfaces Donya Ghafourzadeh 2013-04-30 Department of Science and Technology Institutionen för teknik och naturvetenskap Linköping University Linköpings universitet nedewS ,gnipökrroN 47 106-ES 47 ,gnipökrroN nedewS 106 47 gnipökrroN LiU-ITN-TEK-A-13/011-SE Visualization and Geometric Interpretation of 3D Surfaces Examensarbete utfört i Medieteknik vid Tekniska högskolan vid Linköpings universitet Donya Ghafourzadeh Handledare George Baravdish Examinator Sasan Gooran Norrköping 2013-04-30 Upphovsrätt Detta dokument hålls tillgängligt på Internet – eller dess framtida ersättare – under en längre tid från publiceringsdatum under förutsättning att inga extra- ordinära omständigheter uppstår. Tillgång till dokumentet innebär tillstånd för var och en att läsa, ladda ner, skriva ut enstaka kopior för enskilt bruk och att använda det oförändrat för ickekommersiell forskning och för undervisning. Överföring av upphovsrätten vid en senare tidpunkt kan inte upphäva detta tillstånd. All annan användning av dokumentet kräver upphovsmannens medgivande. För att garantera äktheten, säkerheten och tillgängligheten finns det lösningar av teknisk och administrativ art. Upphovsmannens ideella rätt innefattar rätt att bli nämnd som upphovsman i den omfattning som god sed kräver vid användning av dokumentet på ovan beskrivna sätt samt skydd mot att dokumentet ändras eller presenteras i sådan form eller i sådant sammanhang som är kränkande för upphovsmannens litterära eller konstnärliga anseende eller egenart. För ytterligare information om Linköping University Electronic Press se förlagets hemsida http://www.ep.liu.se/ Copyright The publishers will keep this document online on the Internet - or its possible replacement - for a considerable time from the date of publication barring exceptional circumstances.
    [Show full text]
  • Szórakoztató Elektronikai Eszközök Programozása (VIAUAV05)
    Szórakoztató elektronikai eszközök programozása (VIAUAV05) Tárgy hivatalos adatlapja: http://www.vik.bme.hu/kepzes/targyak/VIAUAV05 A diasoron lévő kérdések kigyűjtve(1-8. előadás). Készítette: Gróf Attila Ha hibát találsz akkor kérlek jelezd itt: [email protected] 1. Előadás Milyen szórakoztató elektronikai software-s technológiákat ismer? o Web alapon . Flashalapon . HTML 5 alapon o Java alapon . BD-J, Java FX o Linux alapon . WebOS, Tizen, Android, … o Egyedi . Roku, Xtreamer, …. Mi a BD-J technológia két fő ága? o Más néven: Java TV o Alkalmazást írhatunk a Blu-ray lemezre, amit a lejátszó futtat o MIDlet-hezhasonló Xlet-ek . Csak Blu-ray lemezre . GEM (Globally Executable Multimedia Home Platform) tartalomként o Több mint egy statikus DVD menü . „Bonus View” funkciócsoport Kép a képben elérés Hozzáférés a helyi tárolóhoz . „BD Live” funkciócsoport Hálózati hozzáférés Magyarázza el a SmartTV fogalmát! o A Smart TVvagy Connected TV: „olyan televízió, amely a hagyományos TV-hez képest továbbfejlesztett képességekkel rendelkezik a kapcsolódás, tartalom és felhasználói élmény tekintetében” o Fizikai felépítés kétféle lehet . TV-be integrált internetes funkciók . Külön STB, a TV csak a megjelenítő eszköz o Egy adott platformhoz tartozó alkalmazásokat és plug-inokat/add-onokat telepíthetünk, futtathatunk o A hagyományos műsorszolgáltatás kicsit háttérbe szorul, a tv adás már csak egy funkció a sok közül Mi a különbség a Chromecast és az AndroidTV (GoogleTV) között? o GoogleTV . Andorid alapú, STB és TV integráció . GooglePlay, Chromeböngésző, Chromecasttámogatás, stb. o Chromecast . TV okosító HDMI stick . Videó streamelésChrome-ból, Androidoskészülékekről o AndroidTV . Az elavult GoogleTV utódja Milyen technológiákon akapul a HTML5? o Webes technológiákon Mi a WebGL, mire használható? o Web-alapú grafikus könyvtár (Web-based Graphics Library) o A JavaScript programozási nyelvet kiegészíti 3D-s számítógépes grafikai lehetőségekkel o OpenGLES 2.0-án alapuló, 3D-grafikai API-tnyújt o Implementációk: .
    [Show full text]
  • Introduction to Opengl
    433-481 © Pearce 2001 Outline • OpenGL Background and History • Other Graphics Technology •Drawing • Viewing and Transformation • Lighting • JOGL and GLUT • Resources 433-380 Graphics and Computation Introduction to OpenGL Some images in these slides are taken from “The OpenGL Programming Manual”, which is copyright Addison Wesley and the OpenGL Architecture Review Board. http://www.opengl.org/documentation/red_book_1.0/ 2 OpenGL Background and History Other Graphics Technology • OpenGL = Open Graphics Library • Low Level Graphics • Developed at Silicon Graphics (SGI) • OpenGL • Successor to IrisGL • Cross Platform • Scene Graphs, BSPs (Win32, Mac OS X, Unix, Linux) – OpenSceneGraph, Java3D, VRML, • Only does 3D Graphics. No Platform Specifics PLIB (Windowing, Fonts, Input, GUI) • Version 1.4 widely available • DirectX (Direct3D) • Two Libraries – GL (Graphics Library) • Can mix some DirectX with OpenGL (e.g – GLU (Graphics Library Utilities) OpenGL and DirectInput in Quake III) 3 4 Platform Specifics The Drawing Process • Platform Specific OpenGL Interfaces ClearTheScreen(); DrawTheScene(); – Windows (WGL) CompleteDrawing(); – X11 (GLX) SwapBuffers(); – Mac OS X (CGL/AGL/NSOpenGL) – Motif (GLwMwidget) • In animation there are usually two buffers. Drawing usually occurs on the background buffer. When it is complete, it is brought to the – Qt (QGLWidget, QGLContext) front (swapped). This gives a smooth animation without the viewer • Java (JOGL) seeing the actual drawing taking place. Only the final image is viewed. • GLUT (GL Utility Library) • The technique to swap the buffers will depend on which windowing library you are using with OpenGL. 5 6 1 433-481 © Pearce 2001 Clearing the Window Setting the Colour glClearColor(0.0, 0.0, 0.0, 0.0); • Colour is specified in (R,G,B,A) form [Red, Green, Blue, Alpha], with glClear(GL_COLOR_BUFFER_BIT); each value being in the range of 0.0 to 1.0.
    [Show full text]