sumbited by heena saini

42
Sumbited by- Heena saini Information techonlogy 4 th year,7 th sem Pratical traning session

Upload: jiet

Post on 19-May-2015

249 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Sumbited by heena saini

Sumbited by-Heena saini

Information techonlogy 4th year,7th

sem

Pratical traning session

Page 2: Sumbited by heena saini

ANDROIDFROM

HPES(jaipur )

I did my traning in

Page 3: Sumbited by heena saini

Objective of traning I want to do my summer training in any useful and new

technology.

So I choosed new mobile technology “ANDROID”.

Page 4: Sumbited by heena saini

About hp Hewlett-Packard Company or HP is an American

multinational hardware and software corporation headquartered in Palo Alto, California, United States.

It provides products, technologies, software, solutions and services to consumers, small- and medium-sized businesses (SMBs) and large enterprises, including customers in the government, health and education sectors.

HP has successful lines of printers, scanners, digital cameras, calculators, PDAs, servers, workstation computers, and computers for home and small business use.

Page 5: Sumbited by heena saini

About hpes Hpes stands for hp education services.

HP Education Services is the most reputed name in the Technical Education.

Hp is largest IT solution and largest UNIX training company worldwide.

hp Has been in the education business for over 28 years. Present in more than 400 HP education centers and partner locations.

Hp has trained professionals and provide training for soft skills and technical and also customized program according to need of fresher's.

Page 6: Sumbited by heena saini

ANDROID Android is mobile operating system such as smart phones and

tablet computers.

Based on modified version of Linux.

Android developed the Google and later Open Handset Alliance(OHA).

Android is open source apache license, means open technology.

Android allows developers to write managed code in java language.

Supports DVM.

Page 7: Sumbited by heena saini

HISTORY 2005 -Google acquired android inc.

5 nov 2007 –OHA formed

12 nov 2007-OHA released preview of the OHA android.

23 sep 2008- android’s first mobile lunched.

First product of OHA is android.

Page 8: Sumbited by heena saini

Versions version Code name

1.5 Cupcake

1.6 Donut

2.1 Eclair

2.2 Froyo

2.3-2.3.7 Gingerbread

3.1-3.2 Honeycomb

4.0-4.0.4 Ice Cream Sandwich

4.1 Jelly Bean

Page 9: Sumbited by heena saini

Features of android Storage- uses SQLite, a lightweight relational database, is

used for dada storage purposes.

Handset support- accelerometer sensor , camera , digital compass, GPS etc.

Connectivity- supports Bluetooth , wifi .

Messaging- supports both MMS and SMS.

Web browser- based on the open-source Web kit , coupled with Chorme’s V8 javascriptengine.

Page 10: Sumbited by heena saini

Multi-touch- supports multi touch screen.

Multi-tasking-supports multitasking applications.

Tethering-supports sharing of internet connections as a wired/wireless hotspot.

Java support-Java classes are compiled into Dalvik executables and run on Dalvik.

External storage- supports in the form of SD card.

Media support- android supports H.263,H.264,MPEG-4 SP,MP3 ETC.

Page 11: Sumbited by heena saini

Open handset alliance

on nov 5,2007, OHA , a consortium of several companies which include HTC, Samsung electronics , LG , Google , Intel etc.

The goal of OHA is to develop open standards for mobile devices.

On the same day, the Open Handset Alliance also unveiled its first product, Android, a mobile device platform built on the Linux kernel version 2.6.

On December 9, 2008, 14 new members joined OHA.

Page 12: Sumbited by heena saini

Open source technology The Android Open Source project(AOSP) is led by Google,

and is tasked with the maintenance and development of

Android.

The goal of the AOSP is to create a successful real-world product that improves the mobile experience for end users.

AOSP creates Android Compatibility as can run any application written by third-party developers using the Android SDK .

Page 13: Sumbited by heena saini

Android Architecture

Page 14: Sumbited by heena saini

Applcation

-This layer is the top layer of the architecture.

-In this layer we find application that ship with the android device application such as phone , contacts etc.

-This layer also ship with the application downloaded from android market.

Page 15: Sumbited by heena saini

Application framework

-Framework elements are-intent, content providers , views and manger.

-this layer has been designed for facilitate the reuse of component in android.

Page 16: Sumbited by heena saini

Libraries

This layer contains all the code that provides main features of the android OS.

Page 17: Sumbited by heena saini

Android Runtime

-At the same level of libraries.

- Application Developed language : Java

-Dalvik Virtual Machine Instruction set : Dalvik Executable.

-Java Standard Library Compile java code to Dalvik Executable

Page 18: Sumbited by heena saini

Linux kernal

Android is based on the Linux Kernel. This layer contains the low levelDevice drivers.

Page 19: Sumbited by heena saini

Development toolsEclipse

Android SDK

ADT

Emulator

Page 20: Sumbited by heena saini

Eclipse As a IDE(integrated development environment) android

use ECLIPSE.

Eclipse is multi language development environment, develop many applications using various languages such as java, c , cpp etc.

For android development we should have eclipse IDE for java EE developers.

Six editions are available such as windows(32 and 64 bit), Linux(32 and 64 bit) etc.

Page 21: Sumbited by heena saini

Android SDK SDK stands for software development kit.

A SDK that enables developers to create application for the Android platform.

The Android SDK includes sample projects with source code , development tools, an emulator , documentation , tutorials and required libraries to build Android applications.

We can download SDK from http://developer.android.com/sdk/index.html

Page 22: Sumbited by heena saini

ADT ADT stands for android development tools.

ADT plug-in for eclipse is an extension to the eclipse IDE that supports the creation and debugging of apps.

Using ADT in eclipse we can-(a) Create new android app.(b) Access the tools for accessing our android emulators and

devise.(c) Compile and debug android app.(d) Export android apps into APK.

Page 23: Sumbited by heena saini

Emulator

Android application may be run on a real device or on the android emulator , which ships with the android SDK

Page 24: Sumbited by heena saini

DVM DVM is open source software.

DVM stands for Dalvik virtual machine Google's Android operating system.

It is the software that runs the apps on Android devices.

Dalvik is thus an integral part of Android, which is typically used on mobile devices such as mobile phones and tablet computers.

Page 25: Sumbited by heena saini

Steps of creating new android project

To creating new android project select-project.

Give project name then select finish.

Then do coding in .java file, layout file, main XML file.

After completion project is ready to run on emulator.

Then run it thorough selecting run as –android project.

Then project runs on android emulator.

Page 26: Sumbited by heena saini

Activity An activity is a single, focused thing that the user can do.

Almost all activities interact with the user, so the Activity class takes care of creating a window for us in which we can place our UI with setContentView(View).

Activity life cycle-Activities in the system are managed as an activity stack. When a new activity is started, it is placed on the top of the stack and becomes the running activity -- the previous activity always remains below it in the stack, and will not come to the foreground again until the new activity exits.

Page 27: Sumbited by heena saini
Page 28: Sumbited by heena saini

Phonebook During my training I create android project “phonebook”.

Page 29: Sumbited by heena saini

Introduction to the project This project aims at storing our important contacts on our

android device.

This application is mainly designed for those who want to store there important contacts on their mobile device itself.

Page 30: Sumbited by heena saini

SOME SPECIAL FEATURES We can create , delete , view and search our contacts which

we have stored earlier.

It helps in easily remembering our important contacts which we want to use in our daily work.

In this project we can easily set our important contact details like birthday , email address , home and office phone number separately and much more .

Page 31: Sumbited by heena saini

SOME SNAPSHOTS OF THIS PROJECT – HOME WINDOW

Page 32: Sumbited by heena saini

Welcoming screen of phonebook

Page 33: Sumbited by heena saini

Home screen of the Phone Book

Page 34: Sumbited by heena saini

Window where we can add our contacts

Page 35: Sumbited by heena saini

Adding window cont..

Page 36: Sumbited by heena saini

Search window – For searching the contacts

Page 37: Sumbited by heena saini
Page 38: Sumbited by heena saini

View window – For viewing our contacts

Page 39: Sumbited by heena saini

View window - Added to contacts

Page 40: Sumbited by heena saini

Search window

Page 41: Sumbited by heena saini

Contact delete window

Page 42: Sumbited by heena saini

Thank you