Mobile Phone Programming
|
|
- Tracy Preston
- 6 years ago
- Views:
Transcription
1 Mobile Phone Programming Free Study Activity Day 3 Part 2 J2ME in a nutshell J2ME in a nutshell
2 Objects In real world: object is your car, your bicycle, your cat.. Object has state and behavior State: variables (car: color, model) Behavior: methods (car: accelerating, braking) Object is created by using class Class In real world: all cars have some state and behavior in common Class defines the variables and the methods common to all objects of a certain kind Defining object Dog Billy; Creating object Billy = new Dog();
3 Object-oriented programming fundamentals public class Car int MaxSpeed; public void speed_up() #code for speeding up Car Corvette = new Car(); Corvette. MaxSpeed =280; Corvette. speed_up() ; Car Ferrari = new Car(); Ferrari. MaxSpeed=320; Ferrari.speed_up(); if statement If-Then Statement: if ( boolean Expression ) //code If-Then-Else Statement: if ( boolean Expression ) //code else if ( boolean Expression ) //code else //code
4 for statement for Statement: for (i = 0; i < 10; i++) //code while statement while Statement: while (boolean expression) //code [iteration;] Switch statement Switch Statement: switch (variable) case value_1: //code (only one line); break; case value_2: //code (more than one line); break;
5 MIDlet GUI Instead of dividing the display into multiple windows (like MS Windows) MIDP GUI could be seen as a deck of screens - only one active at a time Display has a single, fixed-size window whose content are controlled by one application at any time MyMIDlet YourMIDlet GUI High-level API Portability key issue Easy-to-use Little control over GUI s look and feel Low-level API Full control of graphics elements and low-level input events Four classes: Canvas, Graphics, Image, Font Game API provides additional classes for low-level drawing
6 Display Major Classes of LCDUI Displayable MIDP 1.0 Screen Canvas ChoiceGroup DateField TextBox Alert List Form Ticker Item Gauge ImageItem StringItem TextField Major Classes of LCDUI MIDP 2.0 CustomItem Display Displayable Spacer Screen TextBox Canvas Ticker ChoiceGroup DateField Gauge Alert ImageItem List Form Item StringItem TextField
7 public class TextBox_Example extends MIDlet //TextBox(title,text,size,contrains) TextBox textbox = new TextBox("Text Box Example","This is an example of a TextBox",50,0); display.setcurrent(textbox); TextBox Alert public class Alert_Example extends MIDlet // Alert(label,text,Image,type) Alert alert= new Alert("Error Alert","This is an Error Alert example",null,alerttype.error); alert.settimeout(alert.forever); display.setcurrent(alert);
8 public class Multiple_List extends MIDlet List 1 //List(label,type,items,Images) List list = new List("Multiple list", List.MULTIPLE,new String[] "Python", "J2ME", "Symbian", null); display.setcurrent(list); public class Implicit_List extends MIDlet List 2 //List(label,type,items,Images) List list = new List("Implicit list", List.IMPLICIT,new String[] "Python", "J2ME", "Symbian", null); display.setcurrent(list);
9 public class Exclusive_List extends MIDlet List 3 //List(label,type,items,Images) List list = new List("Exclusive list", List.EXCLUSIVE,new String[] "Python", "J2ME", "Symbian", null); display.setcurrent(list); public class Empty_Form extends MIDlet Form form = new Form("Empty Form"); Empty Form
10 Form with ChoiceGroup 1 public class Choice_Group extends MIDlet Form form = new Form("Form example"); //ChoiceGroup(label,type,elements,image) ChoiceGroup CourseEXCL = new ChoiceGroup ("Exclusive choice", Choice.EXCLUSIVE,new String[] "Python", "J2ME", "Symbian", null); form.append(courseexcl); ChoiceGroup CourseMULT = new ChoiceGroup ("Multiple choice", Choice.MULTIPLE,new String[] "Python", "J2ME", "Symbian", null); form.append(coursemult); Form with ChoiceGroup 2 public class Choice_Group extends MIDlet Form form = new Form("Form example"); //ChoiceGroup(label,type,elements,image) ChoiceGroup CoursePOP = new ChoiceGroup ("Pop Up choice", Choice.POPUP,new String[] "Python", "J2ME", "Symbian", null); form.append(coursepop);
11 Form with DateField public class Date_Field extends MIDlet Form form = new Form("Form example"); // DateField(label,type); DateField datefield = new DateField("Date Field Example", DateField.DATE_TIME); form.append(datefield); public class Gauge_ex extends MIDlet Form with Gauge Form form = new Form( Gauge example"); //Gauge(label,interaction,maxValue,InitialValue) Gauge gauge = new Gauge("Gauge example", false, 20, 4); form.append(gauge);
12 Form with ImageItem import java.io.ioexception; public class Image_Item extends MIDlet Form form = new Form("Form example"); try Image Logo = Image.createImage("/images/logo.png"); //ImageItem(label,Image,layout,alternative text) ImageItem imageitem =new ImageItem("ImageItem Example",Logo,ImageItem.LAYOUT_CENTER,""); form.append(imageitem); catch (IOException ex) System.out.println("Exception occurred: "+ex); Form with StringItem public class String_Item extends MIDlet Form form = new Form("Form example"); // StringItem(title,text) StringItem stringitem= new StringItem("String Item", "This is an example of StringItem"); form.append(stringitem);
13 Form with TextField public class Text_Field extends MIDlet Form form = new Form("Form example"); // TextField(label,text,size,constrains); TextField textfield =new TextField("TEXT FIELD","",25,TextField.ANY); form.append(textfield); public class Canvas_Example extends MIDlet CanvasDemo canvas = new CanvasDemo(); display.setcurrent(canvas); class CanvasDemo extends Canvas public void paint (Graphics g) g.setcolor(50,50,255); g.fillrect (0, 0, getwidth (), getheight ()); g.setcolor(200,200,200); g.drawstring("example of Canvas",0,20,0); g.setcolor(0,0,100); g.drawline (0, 40, 100, 200); g.setcolor(200,0,0); g.fillrect (50, 70, 80, 50); Canvas
14 Adding Command Buttons import javax.microedition.midlet.midlet; public class Command_ex extends MIDlet implements CommandListener Command ExitCmd = new Command ("Exit",Command.EXIT,7); Command CheckCmd = new Command ("Check",Command.SCREEN,1); Form form = new Form("Commands example"); form.append("this is a Command button example. Please press the Check button "); form.addcommand(exitcmd); form.addcommand(checkcmd); form.setcommandlistener(this); public void destroyapp(boolean unconditional) notifydestroyed();. public void commandaction(command c, Displayable d) if (c==exitcmd) destroyapp(true); else if (c==checkcmd) Alert alert = new Alert("Alert"); alert.setstring("check button test"); alert.settimeout(3000); // 3 seconds display.setcurrent(alert, display.getcurrent() ); Example: smszipper
Objects. Phone. Programming. Mobile DAY 3 J2ME. Module 2. In real world: object is your car, your bicycle, your cat.. Object has state and behavior
DAY 3 J2ME Mobile Phone Programming Module 2 J2ME DAY 3 in aj2me nutshell Objects In real world: object is your car, your bicycle, your cat.. Object has state and behavior State: variables (car: color,
More informationMobile Application Development. J2ME - Forms
Mobile Application Development J2ME - Forms Dr. Christelle Scharff cscharff@pace.edu Pace University, USA http://mobilesenegal.com Objectives Understand and manipulate: Display Displayable Command Form
More informationMobile Information Device Profile (MIDP) Alessandro Cogliati. Helsinki University of Technology Telecommunications Software and Multimedia Laboratory
Multimedia T-111.5350 Mobile Information Device Profile (MIDP) Alessandro Cogliati Helsinki University of Technology Telecommunications Software and Multimedia Laboratory 1 Outline Java Overview (Editions/Configurations/Profiles)
More informationTAMZ. JavaME. MIDlets. Department of Computer Science VŠB-Technical University of Ostrava
MIDlets 1 MIDlet A MIDlet is a Java program for embedded devices, more specifically the virtual machine. Generally, these are games and applications that run on a cell phone. MIDlets will (should) run
More informationLab Exercise 4. Please follow the instruction in Workshop Note 4 to complete this exercise.
Lab Exercise 4 Please follow the instruction in Workshop Note 4 to complete this exercise. 1. Turn on your computer and startup Windows XP (English version), download and install J2ME Wireless Toolkit
More informationMobile Devices in Software Engineering. Lab 3
Mobile Devices in Software Engineering Lab 3 Objective The objective of this lab is to: 1. Test various GUI components on your device 2. Continue to develop application on mobile devices Experiment 1 In
More informationFaculty of Computer Science and Information Systems Jazan University MOBILE COMPUTING (CNET 426) LAB MANUAL (MOBILE APPLICATION DEVELOPMENT LAB)
Faculty of Computer Science and Information Systems Jazan University MOBILE COMPUTING (CNET 426) LAB MANUAL (MOBILE APPLICATION DEVELOPMENT LAB) (Updated February 2017) Revised and Updated By: Dr SHAMS
More informationAcknowledgments Introduction p. 1 The Wireless Internet Revolution p. 1 Why Java Technology for Wireless Devices? p. 2 A Bit of History p.
Figures p. xiii Foreword p. xv Preface p. xvii Acknowledgments p. xxi Introduction p. 1 The Wireless Internet Revolution p. 1 Why Java Technology for Wireless Devices? p. 2 A Bit of History p. 3 J2ME Standardization
More informationCHADALAWADA RAMANAMMA ENGINEERING COLLEGE
1 MOBILE APPLICATION DEVELOPMENT LABORATORY MANUAL Subject Code : 9F00506 Regulations : JNTUA R09 Class : V Semester (MCA) CHADALAWADA RAMANAMMA ENGINEERING COLLEGE (AUTONOMOUS) Chadalawada Nagar, Renigunta
More informationJ2ME crash course. Harald Holone
J2ME crash course Harald Holone 2006-01-24 Abstract This article gives a short, hands-on introduction to programming J2ME applications on the MIDP 2.0 platform. Basic concepts, such as configurations,
More information... 2...3 1...6 1.1...6 1.2... 10 1.3... 16 2...20 2.1... 20 2.2...28... 33... 35... 40...45...49....53 2 ,,.,,., ё.[37],.,. [14] «-». [19] - (..,..,..,..,..,..,..,..,....) (.,.,.,...). -..,..,... [19].
More informationChapter 13 Add Multimedia to Your MIDlets
Chapter 13 Add Multimedia to Your MIDlets The Mobile Media API (MMAPI), which extends the functions of Java 2 Platform, Micro Edition (J2ME), allows easy and simple access and control of basic audio and
More informationF O R U M N O K I A. MIDP 2.0 Introduction. Version 1.0; May Technology
F O R U M N O K I A MIDP 2.0 Introduction Version 1.0; May 2003 Technology Contents 1 Introduction...4 2 javax.microedition.lcdui...4 2.1 Display...4 2.2 Displayable...5 2.3 Screen...5 2.4 Command...5
More informationDVB-HTML MIDP 2.0 Graphics Architectures for Non-Desktop Devices
DVB-HTML MIDP 2.0 Graphics Architectures for Non-Desktop Devices Pablo Cesar pcesar@tml.hut.fi http://www.tml.hut.fi/~pcesar Part I DVB-HTML Part II MIDP 2.0 Part III Outline Graphics Systems in Embedded
More informationProgramming Wireless Devices with the Java 2 Platform, Micro Edition
Programming Wireless Devices with the Java 2 Platform, Micro Edition J2ME Connected Limited Device Configuration (CLDC) Mobile Information Device Profile (MIDP) Roger Riggs Antero Taivalsaari Mark VandenBrink
More informationMobile Systeme Grundlagen und Anwendungen standortbezogener Dienste. Location Based Services in the Context of Web 2.0
Mobile Systeme Grundlagen und Anwendungen standortbezogener Dienste Location Based Services in the Context of Web 2.0 Department of Informatics - MIN Faculty - University of Hamburg Lecture Summer Term
More informationRadical GUI Makeover with Ajax Mashup
Radical GUI Makeover with Ajax Mashup Terrence Barr Senior Technologist and Community Ambassador Java Mobile & Embedded Community TS-5733 Learn how to turn a 'plain old' Java Platform, Micro Edition (Java
More informationINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATIONTECHOGY TUTORIAL QUESTION BANK ACADEMIC YEAR - 2018-19 Course Title Mobile Application Development Course Code
More informationJUGAT meeting. Roman Waitz Development. MATERNA Information & Communications
JUGAT meeting Roman Waitz Development MATERNA Information & Communications 22/04/2002 Agenda +What the J2ME Platform is +How to build and deploy J2MEbased wireless applications +J2ME programming techniques
More informationمريم سعد جعفر رانيا عبد السجاد علي سامي سمادير عبد العباس ياسمين عبد االمير
مريم سعد جعفر رانيا عبد السجاد علي سامي سمادير عبد العباس ياسمين عبد االمير 1 Introduction of J2ME Introduction of Mobile Technology The goals Mobile Technology Connecting people Information sharing Internet
More informationBVRIT HYDERABAD College of Engineering for Women Department of Information Technology. Hand Out
BVRIT HYDERABAD College of Engineering for Women Department of Information Technology Hand Out Subject Name: Mobile Application Development Prepared by: 1. S. Rama Devi, Assistant Professor, IT Year and
More informationLab Exercise 7. Please follow the instruction in Workshop Note 7 to complete this exercise.
Lab Exercise 7 Please follow the instruction in Workshop Note 7 to complete this exercise. 1. Turn on your computer and startup Windows XP (English version), download and install J2ME Wireless Toolkit
More informationST.MARTIN'S ENGINEERING COLLEGE Dhulapally,Secunderabad-014
ST.MARTIN'S ENGINEERING COLLEGE Dhulapally,Secunderabad-014 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Title Course Code Regulation Course Structure Team of Instructors Mobile Application Development
More informationTWO-DIMENSIONAL FIGURES
TWO-DIMENSIONAL FIGURES Two-dimensional (D) figures can be rendered by a graphics context. Here are the Graphics methods for drawing draw common figures: java.awt.graphics Methods to Draw Lines, Rectangles
More informationGUIDELINES FOR GAME DEVELOPERS USING NOKIA JAVA MIDP DEVICES Version Nov 02
GUIDELINES FOR GAME DEVELOPERS USING NOKIA JAVA MIDP DEVICES 07 Nov 02 Table of Contents 1. INTRODUCTION...3 1.1 PURPOSE...3 1.2 REFERENCES...4 2. GAME GUIDELINES...5 2.1 USE OF GAME ACTIONS...5 2.2 NOTES
More informationWhat have we learnt last week? Wireless Online Game Development for Mobile Device. Introduction to Thread. What is Thread?
What have we learnt last week? Wireless Online Game Development for Mobile Device Lesson 5 Introduction to Low-level API Display Image in Canvas Configure color, line style, font style for Drawing Drawing
More informationDAY 3 J2ME March 2007 Aalborg University, Mobile Device Group Mobile Phone Programming
DAY 3 J2ME Mobile Phone Programming Module 2 Micro (J2ME) Overview Introduction J2ME architecture Introduction 1 J2ME Key Factors Portability: Write once run anywhere Security: Code runs within the confines
More informationNutiteq Maps SDK tutorial for Java ME (J2ME)
Nutiteq Maps SDK tutorial for Java ME (J2ME) Version 1.1.1 (updated 29.08.2011) 2008-2011 Nutiteq LLC Nutiteq LLC www.nutiteq.com Skype: nutiteq support@nutiteq.com Page2 1 Contents 2 Introduction... 3
More informationProjectwork Mobile Services
Projectwork Mobile Services HMCS House Mobile Control System Valentin Ioan Tincas Jürgen Innerkofler 2007/2008 Project description:... 3 Used hardware components:... 3 Software implementation... 4 Communication
More informationCÔNG NGHỆ KHÔNG DÂY VÀ ỨNG DỤNG. Biên tập bởi: Khoa CNTT ĐHSP KT Hưng Yên
CÔNG NGHỆ KHÔNG DÂY VÀ ỨNG DỤNG Biên tập bởi: Khoa CNTT ĐHSP KT Hưng Yên CÔNG NGHỆ KHÔNG DÂY VÀ ỨNG DỤNG Biên tập bởi: Khoa CNTT ĐHSP KT Hưng Yên Các tác giả: Khoa CNTT ĐHSP KT Hưng Yên Phiên bản trực
More informationDAY 3 J2ME Aalborg University, Mobile Device Group. Mobile. Mobile Phone Programming
DAY 3 J2ME Mobile Phone Programming Java 2 Micro Edition (J2ME) Overview Introduction J2ME architecture MIDlets Application development Introduction J2ME Key Factors Portability: Write once run anywhere
More informationJ2ME With Database Connection Program
J2ME With Database Connection Program Midlet Code: /* * To change this template, choose Tools Templates * and open the template in the editor. package hello; import java.io.*; import java.util.*; import
More informationMobile Application Development. Introduction. Dr. Christelle Scharff Pace University, USA
Mobile Application Development Introduction Dr. Christelle Scharff cscharff@pace.edu Pace University, USA Objectives Getting an overview of the mobile phone market, its possibilities and weaknesses Providing
More informationOracle Exam 1z0-869 Java Mobile Edition 1 Mobile Application Developer Certified Professional Exam Version: 6.0 [ Total Questions: 340 ]
s@lm@n Oracle Exam 1z0-869 Java Mobile Edition 1 Mobile Application Developer Certified Professional Exam Version: 6.0 [ Total Questions: 340 ] Topic 1, Volume A Question No : 1 - (Topic 1) How would a
More informationThành phần Form và Items
Thành phần Form và Items Bởi: Khoa CNTT ĐHSP KT Hưng Yên Trong phần này sẽ giới thiệu các thành phần được hiển thị ra trên một Form. Một Form chỉ đơn giản là một khung chứa các thành phần, mà mỗi thành
More informationMaster Project. Push To Chat. Realized by. The Quang Nguyen. Supervisor. Professor Jean-Yves Le Boudec (EPFL, LCA) Assistant
Master Project Push To Chat Realized by The Quang Nguyen Supervisor Professor Jean-Yves Le Boudec (EPFL, LCA) Assistant Alaeddine El Fawal (EPFL, LCA) Ecole Polytechnique Fédérale de Lausanne (EPFL) Winter
More informationMobile Devices in Software Engineering. Lab 2
Mobile Devices in Software Engineering Lab 2 Objective The objective of this lab is to: 1. Get you started with network based mobile applications 2. Get you started with persistent storage on mobile devices
More informationJava 2 Micro Edition Server socket and SMS
Java 2 Micro Edition Server socket and SMS F. Ricci Content Other Connection Types Responding to Incoming Connections Security Permissions Security domains Midlet signing Wireless Messaging Responding
More informationLAB MANUAL MOBILE APPLICATION DEVELOPMENT LAB. Mr. D.RAHUL Assistant Professor
LAB MANUAL ON MOBILE APPLICATION DEVELOPMENT LAB IV B. Tech I semester (JNTUH-R15) Mr. D.RAHUL Assistant Professor INFORMATION TECHNOLOGY INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) DUNDIGAL, HYDERABAD
More informationList. The constructor of List : List(String title, int listtype) List(String title, int listtype, String[] stringelements, Image[] imageelements)
List List is a screen contains a set of choices the user can use any one of it. There are three types of List : IMPLICIT, EXCLUSIVE, MULTIPLE we learned it in ChoiceGroup lecture List The constructor of
More informationActual4Test. Actual4test - actual test exam dumps-pass for IT exams
Actual4Test Actual4test - actual test exam dumps-pass for IT exams Exam : 1Z0-869 Title : Java Mobile Edition 1 Mobile Application Developer Certified Professional Exam Vendors : Oracle Version : DEMO
More informationThe network connection
C H A P T E R 1 3 The network connection 13.1 About the Generic Connection Framework 366 13.2 Using the Generic Connection Framework 372 13.3 HTTP-based connections 372 13.4 Socket-based connections 377
More information1Z0-869
1Z0-869 Passing Score: 800 Time Limit: 4 min Exam A QUESTION 1 How would a MIDlet that uses a GameCanvas efficiently update only a small region of the screen, from the data in the off-screen buffer? A.
More informationLAB MANUAL ON MOBILE APPLICATION DEVELOPMENT LAB
LAB MANUAL ON MOBILE APPLICATION DEVELOPMENT LAB Objective: In this lab, a student is expected to design, implement, document and present a mobile client/server system using standard Java and Java 2 Micro
More informationWireless Java Technology
Wireless Java Technology Pao-Ann Hsiung National Chung Cheng University Ref: http://developers.sun.com/techtopics/mobility/learning/tutorial/ 1 Contents Overview of Java 2 Platform Overview of J2ME Scope
More informationWho am I? Wireless Online Game Development for Mobile Device. What games can you make after this course? Are you take the right course?
Who am I? Wireless Online Game Development for Mobile Device Lo Chi Wing, Peter Lesson 1 Email: Peter@Peter-Lo.com I123-1-A@Peter Lo 2007 1 I123-1-A@Peter Lo 2007 2 Are you take the right course? This
More informationAccessing DB2 Everyplace using J2ME devices, part 1
Accessing DB2 Everyplace using J2ME devices, part 1 Skill Level: Intermediate Naveen Balani (naveenbalani@rediffmail.com) Developer 08 Apr 2004 This two-part tutorial assists developers in developing DB2
More information3.3.4 Connection Framework
108 MIDP 2.0 AND THE JTWI 3.3.4 Connection Framework 3.3.4.1 What s Optional and What s Not The CLDC provides a Generic Connection Framework (GCF), which is an extensible framework that can be customized
More informationProgramming mobile devices with J2ME
Claude Fuhrer Bern University of Applied Sciences School of Engineering and Information Technology October 2010 1 Introduction The Connected Limited Device Configuration Part I Introduction Introduction
More informationDoD Mobile Client- A Comparison between J2ME and Symbian Platforms
DoD Mobile Client- A Comparison between J2ME and Symbian Platforms Sanjay Rajwani KTH Information and Communication Technology Master of Science Thesis Stockholm, Sweden 2012 DoD Mobile Client A Comparison
More informationCork Institute of Technology. Spring 2006 GUI/Mobile/Web (Time: 3 Hours)
Cork Institute of Technology Bachelor of Science (Honours) in Software Development Stage 3 (NFQ Level 8) Spring 2006 GUI/Mobile/Web (Time: 3 Hours) Answer FOUR questions ONLY. Show all work. Marks:All
More informationMobile application development J2ME U N I T I
Mobile application development J2ME U N I T I Mobile Application Development Prepared By : Ms. G Chaitanya Assistant Professor Information Technology Overview Introduction of Mobile Technology What is
More informationCIS 162 Project 1 Business Card Section 04 (Kurmas)
CIS 162 Project 1 Business Card Section 04 (Kurmas) Due Date at the start of lab on Monday, 17 September (be prepared to demo in lab) Before Starting the Project Read zybook chapter 1 and 3 Know how to
More informationJava 2 Micro Edition Server socket and SMS. F. Ricci
Java 2 Micro Edition Server socket and SMS F. Ricci Content Other Connection Types Responding to Incoming Connections Socket and Server Socket Security Permissions Security domains Midlet signing Wireless
More information7. Concurrency. Motivation Infrastructure Faking concurrency Mobile Java implementation Symbian OS implementation. Maemo implementation Summary
7. Concurrency Motivation Infrastructure Faking concurrency Mobile Java implementation Symbian OS implementation Threads Active objects Maemo implementation Summary 1 Motivation Mobile devices are fundamentally
More informationDeveloping mobile UI
Vorlesung Advanced Topics in HCI (Mensch-Maschine-Interaktion 2) Ludwig-Maximilians-Universität München LFE Medieninformatik Albrecht Schmidt & Andreas Butz WS2003/2004 http://www.medien.informatik.uni-muenchen.de/
More informationCHAPTER 18 MIDLETS JAVA PROGRAMS FOR MOBILE DEVICES
Although this document is written so that it slightly resembles a chapter of a book, this does not belong to my Java book A Natural Introduction to Computer Programming in Java. This document is additional
More informationObject-Oriented Programming Design Topic : Exception Programming
Electrical and Computer Engineering Object-Oriented Topic : Exception Maj Joel Young Joel.Young@afit.edu 18-Sep-03 Maj Joel Young Error Handling General error handling options Notify the user, and Return
More informationPROGRAMMING FUNDAMENTALS
PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write
More informationMensch-Maschine-Interaktion 2
Mensch-Maschine-Interaktion 2 Übung 5 (12./14./15. Juni 2007) Arnd Vitzthum - arnd.vitzthum@ifi.lmu.de Amalienstr. 17, Raum 501 Dominic Bremer - bremer@cip.ifi.lmu.de Java ME Overview (I) Java ME slim
More informationIndex. 2G networks, 16, G networks, 16, 30 3D mobile games, 12 3G networks, 16 3gpp format, 347
Index Yuan.qrk 11/19/04 4:00 PM Page 577 Index 2G networks, 16, 30 2.5G networks, 16, 30 3D mobile games, 12 3G networks, 16 3gpp format, 347 A Active state, for MIDlets, 61 Advanced Graphics Optional
More informationIntegrating J2ME Polish into the MTJ Project
Integrating J2ME Polish into the MTJ Project Introduction Business Model Business Opportunities Proposal Motivation: Fragmentation Mobile device fragmentation limits mobile application adoption and thereby
More informationWhile Loops A while loop executes a statement as long as a condition is true while condition: statement(s) Statement may be simple or compound Typical
Recommended Readings Chapter 5 Topic 5: Repetition Are you saying that I am redundant? That I repeat myself? That I say the same thing over and over again? 1 2 Repetition So far, we have learned How to
More informationHiPath optipoint application module XML Applications. Developer s Guide
HiPath optipoint application module XML Applications Developer s Guide bkivz.fm For internal distribution only 1 Introduction........................................................... 2 1.1 Overview.............................................................
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationAggregation. Chapter 8. Java By Abstraction Chapter 8. Outline. 8.1 What is Aggregation? Copyright 2006 Pearson Education Canada Inc.
Chapter 8 Aggregation Java By Abstraction 8- Outline 8. What is Aggregation? 8.. Definition and Terminology 8..2 The Aggregate s Constructor 8..3 Accessors and Mutators 8..4 The Client s Perspective 8..5
More informationJava Programming. MSc Induction Tutorials Stefan Stafrace PhD Student Department of Computing
Java Programming MSc Induction Tutorials 2011 Stefan Stafrace PhD Student Department of Computing s.stafrace@surrey.ac.uk 1 Tutorial Objectives This is an example based tutorial for students who want to
More informationUsing XML in Wireless Applications
Using XML in Wireless Applications CHAPTER 10 IN THIS CHAPTER Overview 336 XML and Parsing XML Documents 337 XML Parsers for Wireless Applications 340 SAX 1.0 Java API For J2ME MIDP 342 TinyXML Parser
More informationMobile Messaging Using Bangla
1 Mobile Messaging Using Bangla Tofazzal Rownok ID# 01101040 Department of Computer Science and Engineering December 2005 BRAC University, Dhaka, Bangladesh 2 DECLARATION I hereby declare that this thesis
More informationKey Concept: all programs can be broken down to a combination of one of the six instructions Assignment Statements can create variables to represent
Programming 2 Key Concept: all programs can be broken down to a combination of one of the six instructions Assignment Statements can create variables to represent information Input can receive information
More informationLecture 7 Objects and Classes
Lecture 7 Objects and Classes An Introduction to Data Abstraction MIT AITI June 13th, 2005 1 What do we know so far? Primitives: int, double, boolean, String* Variables: Stores values of one type. Arrays:
More informationAnother class in the Form arsenal of Items is ChoiceGroup.
Another class in the Form arsenal of Items is ChoiceGroup. ChoiceGroup offers a list of choices, the user can choose one or more of these options according to the type of ChoiceGroup we will detect it
More informationCOMP Summer 2015 (A01) Jim (James) Young jimyoung.ca
COMP 1010- Summer 2015 (A01) Jim (James) Young young@cs.umanitoba.ca jimyoung.ca final float MAX_SPEED = 10; final float BALL_SIZE = 5; void setup() { size(500, 500); void draw() { stroke(255); fill(255);
More informationAiiojjfU ^0)1. Chapter 1: Introduction and Reqiiirenieiit Analysis. Introduction. J2ME basics. J2ME User interface. J2ME Data management
AiiojjfU ^0)1 Chapter 1: Introduction and Reqiiirenieiit Analysis Introduction J2ME basics J2ME User interface J2ME Data management J2ME Personal Information Manager Profile J2ME Networking and Web Services
More informationWriting Java Applications for Mobile Information Devices
Writing Java Applications for Mobile Information Devices James E. Osbourn RiverPoint Group LLC josbourn@riverpoint.com James E. Osbourn Writing Java Applications for Mobile Information Devices Page 1 You...
More informationBangla Text Input and Rendering Support for Short Message Service on Mobile Devices
Bangla Text Input and Rendering Support for Short Message Service on Mobile Devices Tofazzal Rownok, Md. Zahurul Islam and Mumit Khan Department of Computer Science and Engineering, BRAC University, Dhaka,
More informationWidgets. Widgets Widget Toolkits. 2.3 Widgets 1
Widgets Widgets Widget Toolkits 2.3 Widgets 1 User Interface Widget Widget is a generic name for parts of an interface that have their own behavior: buttons, drop-down menus, spinners, file dialog boxes,
More informationSoftware Development & Education Center. Java Platform, Micro Edition. (Mobile Java)
Software Development & Education Center Java Platform, Micro Edition (Mobile Java) Detailed Curriculum UNIT 1: Introduction Understanding J2ME Configurations Connected Device Configuration Connected, Limited
More informationLAB-6340: Advanced Java ME Programming - Streaming Video From Server to Your Device
LAB-6340: Advanced Java ME Programming - Streaming Video From Server to Your Device Lukas Hasik, Fabiola Galleros Rios Software Engineer, Mobility Pack QE Sun Microsystems Inc. http://www.sun.com 2007
More informationWidgets. Widgets Widget Toolkits. User Interface Widget
Widgets Widgets Widget Toolkits 2.3 Widgets 1 User Interface Widget Widget is a generic name for parts of an interface that have their own behavior: buttons, drop-down menus, spinners, file dialog boxes,
More informationCSC Java Programming, Fall Java Data Types and Control Constructs
CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference
More informationRepresentation Invariants and Abstraction Functions
Representation Invariants and Abstraction Functions Outline Reasoning about ADTs Representation invariants (rep invariants) Representation exposure Checking rep invariants Abstraction functions CSCI 2600
More informationCHAPTER : 9 FLOW OF CONTROL
CHAPTER 9 FLOW OF CONTROL Statements-Statements are the instructions given to the Computer to perform any kind of action. Null Statement-A null statement is useful in those case where syntax of the language
More informationMidlet Navigation Graphs in JML
Midlet Navigation Graphs in JML Wojciech Mostowski and Erik Poll Radboud University Nijmegen Digital Security Group woj@cs.ru.nl, erikpoll@cs.ru.nl Abstract. In the context of the EU project Mobius on
More informationTotal Score /15 /20 /30 /10 /5 /20 Grader
NAME: NETID: CS2110 Fall 2009 Prelim 2 November 17, 2009 Write your name and Cornell netid. There are 6 questions on 8 numbered pages. Check now that you have all the pages. Write your answers in the boxes
More informationSide Trip into Java: Enumeration Types. CS61B Lecture #36. Making Enumerals Available Elsewhere. Enum Types in Java. import static checkers.piece.
CS61B Lecture #36 Today: A Brief Side Trip: Enumeration types. DSIJ, Chapter 10, HFJ, pp. 489 516. Threads Communication between threads Synchronization es Coming Up: Graph Structures: DSIJ, Chapter 12
More informationCourse overview: Introduction to programming concepts
Course overview: Introduction to programming concepts What is a program? The Java programming language First steps in programming Program statements and data Designing programs. This part will give an
More informationXMobile: a MB-UID environment for semi-automatic generation of adaptive applications for mobile devices
XMobile: a MB-UID environment for semi-automatic generation of adaptive applications for mobile devices Windson Viana 1, Rossana M. C. Andrade 2 1 LIG Université Joseph Fourier (UJF), Grenoble I, France
More informationNested Loops ***** ***** ***** ***** ***** We know we can print out one line of this square as follows: System.out.
Nested Loops To investigate nested loops, we'll look at printing out some different star patterns. Let s consider that we want to print out a square as follows: We know we can print out one line of this
More informationStep 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content
Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location
More informationFun facts about recursion
Outline examples of recursion principles of recursion review: recursive linked list methods binary search more examples of recursion problem solving using recursion 1 Fun facts about recursion every loop
More informationAccurate study guides, High passing rate! Testhorse provides update free of charge in one year!
Accurate study guides, High passing rate! Testhorse provides update free of charge in one year! http://www.testhorse.com Exam : 1Z0-850 Title : Java Standard Edition 5 and 6, Certified Associate Exam Version
More informationTotal Score /15 /20 /30 /10 /5 /20 Grader
NAME: NETID: CS2110 Fall 2009 Prelim 2 November 17, 2009 Write your name and Cornell netid. There are 6 questions on 8 numbered pages. Check now that you have all the pages. Write your answers in the boxes
More informationAssignment 2. Application Development
Application Development Assignment 2 Content Application Development Day 2 Lecture The lecture covers the key language elements of the Java programming language. You are introduced to numerical data and
More informationJava Programming. Atul Prakash
Java Programming Atul Prakash Java Language Fundamentals The language syntax is similar to C/ C++ If you know C/C++, you will have no trouble understanding Java s syntax If you don't, it will be easier
More informationAdvanced Computer Programming
Hazırlayan Yard. Doç. Dr. Mehmet Fidan WHILE, DO-WHILE and FOR LOOPS Loops are used for executing code blocks repeatedly. Decision of continuing loop is given by boolean expression. If boolean expression
More informationCreating a Java ME Embedded Project That Uses GPIO
Raspberry Pi HOL. Note: IP: 10.0.0.37 User: pi Password: raspberry Part I Creating a Java ME Embedded Project That Uses GPIO In this section, you create a project by using NetBeans and you test it locally
More informationCS32 Discussion Week 3
CS32 Discussion Week 3 Muhao Chen muhaochen@ucla.edu http://yellowstone.cs.ucla.edu/~muhao/ 1 Outline Doubly Linked List Sorted Linked List Reverse a Linked List 2 Doubly Linked List A linked list where
More informationCollections, Maps and Generics
Collections API Collections, Maps and Generics You've already used ArrayList for exercises from the previous semester, but ArrayList is just one part of much larger Collections API that Java provides.
More informationRecursion. Garfield AP Computer Science. As usual, significant borrowings from Stuart Reges and Marty Stepp at UW -- thanks!!
Recursion Garfield AP Computer Science As usual, significant borrowings from Stuart Reges and Marty Stepp at UW -- thanks!! Definitions recursion: The definition of an operation in terms of itself. Solving
More information