T57 Platform Technologies

Similar documents
Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly

Android Environment SDK

Android Environment SDK

Developing In Eclipse, with ADT

How To Develop An Android App On An Android Device

Android Application Development: Hands- On. Dr. Jogesh K. Muppala

Android Development Setup [Revision Date: 02/16/11]

Android Application Development - Exam Sample

ADT Plugin for Eclipse

Android Application Development

Hello World. by Elliot Khazon

Getting Started with Android Development

How to Create an Android Application using Eclipse on Windows 7

Introduction to Android Development

Mobile Application Development

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011

Developing NFC Applications on the Android Platform. The Definitive Resource

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

Tutorial #1. Android Application Development Advanced Hello World App

Epidefender Studio Installation notice

Android Development. Marc Mc Loughlin

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

Android Development. 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

Installing the Android SDK

Android Setup Phase 2

Android Basics. Xin Yang

Android Tutorial. Larry Walters OOSE Fall 2011

ID TECH UniMag Android SDK User Manual

Mobile Application Development 2014

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

OpenCV on Android Platforms

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Headings: Results Space. Android OS. Mobile software development. Research Collaboration

Android 多 核 心 嵌 入 式 多 媒 體 系 統 設 計 與 實 作

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

Running a Program on an AVD

Introduction to Android. CSG250 Wireless Networks Fall, 2008

Login with Amazon Getting Started Guide for Android. Version 2.0

App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

Android Development Exercises Version Hands On Exercises for. Android Development. v

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Application Development Setup Guide

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

Android Development Tutorial. Human-Computer Interaction II (COMP 4020) Winter 2013

Fahim Uddin 1. Java SDK

Introduction to Android Programming (CS5248 Fall 2015)

How to build your first Android Application in Windows

Android 4.4 App Development Essentials

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

How to develop your own app

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Lab 0 (Setting up your Development Environment) Week 1

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Eclipse installation, configuration and operation

How To Develop Android On Your Computer Or Tablet Or Phone

Tutorial on Basic Android Setup

Getting Started: Creating a Simple App

Praktikum Entwicklung Mediensysteme (für Master)

ITG Software Engineering

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

PTC Integrity Eclipse and IBM Rational Development Platform Guide

How to Set Up Your PC for Android Application Development

Application Development

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

J A D E T U TO R I A L

Chapter 2 Getting Started

Introduction to Android

1. Introduction to Android

Programmazione di sistemi mobili e tablet

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients.

Developer Guide: Android Object API Applications. SAP Mobile Platform 2.3 SP02

Kindle Fire App Development Essentials

Android Development Tools for Eclipse

l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc)

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Frameworks & Android. Programmeertechnieken, Tim Cocx

With a single download, the ADT Bundle includes everything you need to begin developing apps:

Q1. What method you should override to use Android menu system?

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 2 Android Platform. Marco Picone

Setting Up a Windows Virtual Machine for SANS FOR526

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

ANDROID PROGRAMMING - INTRODUCTION. Roberto Beraldi

Android Development. Lecture AD 0 Android SDK & Development Environment. Università degli Studi di Parma. Mobile Application Development

Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean

Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development.

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

Lab 2-2: Exploring Threads

IOIO for Android Beginners Guide Introduction

Smooks Dev Tools Reference Guide. Version: GA

Mocean Android SDK Developer Guide

POOSL IDE Installation Manual

System Reference 2013

Basic Android Setup Windows Version

Getting Started using the SQuirreL SQL Client

Transcription:

T57 Platform Technologies LAB MANUAL Documented by P.Karthikeyan Department of Information Technology Thiagarajar College of Engineering Madurai-625015

LIST OF EXPERIMENTS 1. Implementation of Collection Classes and Objects 2. Implementation of utility package classes 3. Operations on Java Archive (JAR) file 4. Creation of Logs using Logging API 5. Monitor and Manage the JVM using jconsole tool 6. Implementation of storage and retrieval of user and system data using Preference API 7. Installation of Android SDK and Setting up the Android ADE 8. Creation and Execution of a Simple Android Application 9. Designing a Simple Calculator 10. Designing and Development of Feedback Form for an Event 11. Designing and Development of a Mobile Shopping Application 12. Designing and Development of a real time application using SQLite [2]

Ex: 1 Implementation of Collection Classes and Objects a) Problem: Create separate array lists to store the filenames based on the file types from the given directory and perform the following tasks: i) Search a file from the list ii) Count the file names in each list Packages Interface Classes : Utility, IO : FilenameFilter : File, ArrayList : list, accept, size, add, remove etc. b) Problem: Implement the queue and stack concepts using linked list operations and perform the following tasks in both. i) Search an element ii) Count the elements Packages Class : Utility : LinkedList : addfirst, addlast, removefirst, removelast, getfirst, getlast etc. [3]

Ex: 2 Implementation of Utility Package Classes a) Problem: Create an employee payroll list of an organization and perform the following tasks: i) Calculate the salary based on the basic_pay ii) search a particular employee based on his empid iii) Find the employees who are all having the salary < 5000 iv) Find the employees based on their designation Package Class : Utility : LinkedList, StringTokenizer : addfirst, addlast, removefirst, removelast, getfirst, getlast, nextelement, nexttoken, counttokens etc. b) Problem: Generate EB bill for various consumers who are all paid their EB charge in a particular date but in different time and create separate method to calculate the bill amount based on consumed units. Package Class : Utility : LinkedList, Date, Timer, TimerTask : addfirst, addlast, removefirst, removelast, getfirst, getlast, gettime, settime, run, schedule etc. EB Bill Format (Expected Output Format) ------------------------------------------------------------------------------ Tamil Nadu Electricity Board Madurai Date & Time: Mon Apr 22 09:51:52 2010 Bill No.:201 ------------------------------------------------------------------------------ Consumer Name : Arun Total Units Consumed : 210 Price per Unit : Rs.6.00 ------------------------------------------------------------------------------ Total Cost : Rs.1260 ------------------------------------------------------------------------------ [4]

Ex: 3 Operations on Java Archive (JAR) file a) Problem: Develop a book shop application and perform the following tasks. i) Create a JAR file ii) View the contents of a JAR file iii) Extract the contents of a JAR file iv) Update the JAR file v) Run the application through JAR Write the basic format for doing all the above operations in the description part. b) Problem: Develop an applet for address book and perform the following tasks. i) Create a JAR file ii) View the contents of a JAR file iii) Extract the contents of a JAR file iv) Update the JAR file v) Run the application through JAR Write the basic format for doing all the above operations in the description part. [5]

Ex: 4 Creation of Logs using Logging API a) Problem: Create a log report for a cooking application from the given raw materials using logging API. Generate the logs or log records for the following scenarios. i) Generate CONFIG level log in display the Maximum limits of the materials. ii) Generate INFO level log for every insertion operation. iii) Generate INFO level log for every deletion operation. iv) Generate WARNING level log during search a particular material. v) Generate SEVERE level log during the recipe preparation. Package Class Fields : logging : Logger, LogManager, Level, Handler, LogRecord, Formatter : getlogger, getlogmanager, addloger, addhandler, log, publish, close, etc. : Level. CONFIG, Level. SEVERE, Level.WARNING, Level.INFO etc. b) Problem: Create a log report for library management application using logging API. Generate the logs or log records for the following scenarios. i) Generate CONFIG level log in display the Maximum limits of the rack, Maximum no. of book issue for students, staffs. ii) Generate INFO level log for every insertion operation. iii) Generate INFO level log for every deletion operation. iv) Generate SEVERE level log during the book issue operation. v) Generate WARNING level log during search a particular book. Package Class Fields : logging : Logger, LogManager, Level, Handler, LogRecord, Formatter : getlogger, getlogmanager, addloger, addhandler, log, publish, close, etc. : Level. CONFIG, Level. SEVERE, Level.WARNING, Level.INFO etc. [6]

Ex: 5 Monitor and Manage the JVM using jconsole tool Problem: Connect the jconsole tool with local process and note down how the monitoring is takes place in Threads, Classes and Memory. [7]

Ex: 6 Implementation of Storage and Retrieval of User and System data using Preference API a) Problem: Create a tree for the files system hierarchy of your system and perform the following tasks. (Important: Node s key values are like Name description, Size, Type, Date, etc.) i) Insert all the nodes with its key details. ii) Display the total file system hierarchy iii) Search for a particular system file details and its path iv) Display the list of files and sub directories of a given directory b) Problem: Create a tree for the university information system hierarchy and perform the following tasks. i) Insert all the nodes with its key details. ii) Display the total system hierarchy iii) Search for a particular College details iv) Display the list of courses offered in a particular college [8]

Ex: 7 Installation of Android SDK and Setting up the Android Application Development Environment Android SDK Installation: 1. Download the latest SDK package suitable for your OS from http://developer.android.com/sdk/index.html#quickstart 2. Unzip the Android SDK archive to a suitable location on your machine. 3. Add the location of the SDK's primary tools directory to your system PATH. In Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path. Eclipse Installation: 1. Download the Eclipse package (Eclipse IDE for Java EE Developers) from http://www.eclipse.org/downloads/ 2. Unzip the Eclipse archive to a suitable location on your machine. ADT Plugin Installation: 1. Start Eclipse, then select Help > Install New Software. 2. In the Available Software dialog, click Add... 3. In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field. In the "Location" field, enter this URL:https://dl-ssl.google.com/android/eclipse/ Click OK. 4. Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next. [9]

5. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. 6. Click Next to read and accept the license agreement and install any dependencies, then click Finish. 7. Restart Eclipse. Android Virtual Device (AVD) Creation: 1. In Eclipse, choose Window > Android SDK and AVD Manager. 2. Select the Install Packages in the left panel. If all the packages are already installed then go to step 4 otherwise go to next step. 3. Select the Available packages in the left panel and install all the software which is listed by the URL. 4. Select Virtual Devices in the left panel. 5. Click New. The Create New AVD dialog appears. 6. Type the name of the AVD, such as "my_avd". 7. Choose a target. The target is the platform (that is, the version of the Android SDK, such as 2.1) you want to run on the emulator. 8. You can ignore the rest of the fields for now. 9. Click Create AVD. [10]

Ex: 8 Creation and Execution of a Simple Android Application Creation of a Simple Android Application: 1. Select File > New > Project. 2. Select Android > Android Project, and click Next. 3. Select the contents for the project: Enter a Project Name. This will be the name of the folder where your project is created. 4. Under Contents, select Create new project in workspace. Select your project workspace location. 5. Under Target, select an Android target to be used as the project's Build Target. The Build Target specifies which Android platform you'd like your application built against. 6. Under Properties, fill in all necessary fields. Enter an Application name. This is the human-readable title for your application (the name that will appear on the Android device). Enter a Package name. This is the package namespace where all your source code will reside. (Following the same rules as for packages in the Java) Select Create Activity (optional, of course, but common) and enter a name for your main Activity class. Enter a Min SDK Version. This is an integer that indicates the minimum API Level required to properly run your application. 7. Click Finish. Contents (folders and files) in new Android Project: src/ Includes your stub Activity Java file. All other Java files for your application go here. <Android Version>/ (e.g., Android 2.1/) Includes the android.jar file that your application will build against. This is determined by the build target that you have chosen in the New Project Wizard. [11]

gen/ This contains the Java files generated by ADT, such as your R.java file and interfaces created from AIDL files. assets/ This is empty. You can use it to store raw asset files. res/ A folder for your application resources, such as drawable files, layout files, string values, etc. AndroidManifest.xml The Android Manifest for your project. The manifest presents essential information about the application to the Android system. Information the system must have before it can run any of the application's code. default.properties This file contains project settings, such as the build target. This files is integral to the project, as such, it should be maintained in a Source Revision Control system. It should never be edited manually To edit project properties, right-click the project folder and select "Properties". Run the Android Application: An Android application can be run in 2 modes (Run mode, Debug mode) To Run it in the run mode, select Run> Run (Ctrl+F11) > Android Application To Run it in the debug mode, select Run > Debug (F11) > Android Application [12]

Ex: 9 Designing of a Simple Calculator Problem: Design a simple calculator to perform add, subtract, multiply and divide two numbers using android. Package Classes Layout Coding: : android.app, android.os, android.widget, android.view etc. : Activity, Bundle, View, Button etc. : oncreate, setcontentview, onpause, onresume, setonclicklistener etc. : TableLayout and its properties Java source main.xml AndroidManifest.xml [13]

Ex: 10 Designing and Development of Feedback Form for an Event Problem: Design and develop a feedback form for any event of your college and perform validation. Package Classes Layout : android.app, android.os, android.widget, android.view etc. : Activity, Bundle, View, Button, Toast, CheckBox, RadioButton etc. : oncreate, setcontentview, onpause, onresume, setonclicklistener etc. : TableLayout/ LinearLayout and its properties Coding: Java source main.xml AndroidManifest.xml [14]

Ex: 11 Designing and Development of a Mobile Shopping Application Problem: Design and develop an application for mobile shopping. Package Classes Layout : android.app, android.os, android.widget, android.view etc. : Activity, Bundle, View, Button, ImageView, CheckBox etc. : oncreate, setcontentview, onpause, onresume, setonclicklistener etc. : TableLayout/ LinearLayout and its properties Coding: Java source main.xml AndroidManifest.xml [15]

Ex: 12 Designing and Development of a Real Time Application using SQLite Problem: Design and develop an insurance application using SQLite database. Package Classes Layout : android.app, android.os, android.widget, android.view, android.database, android.database.sqlite, android.content etc. : Activity, Bundle, View, Button, ImageView, CheckBox, Cursor, SQLiteDatabase, SQLiteOpenHelper, ContentValues etc. : oncreate, setcontentview, onpause, onresume, setonclicklistener, query, getwritabledatabase, insert, delete etc. : TableLayout/ LinearLayout and its properties Coding: Java source (Design & Database) main.xml AndroidManifest.xml [16]