20
Welcome In 1 Android

Android

Embed Size (px)

Citation preview

Welcome In#Android

#Introduction of AndroidAndroid is a complete set of software for mobile devices such as tablet computers, notebooks, smartphones, electronic book readers, set-top boxes

Android is a software package and Linux based operating system for mobile devices ,tablet and smartphone.It is developed by Google and later the OHA (Open Handset Alliance).

Open Handset Alliance (OHA) :-It's a consortium of 84 companies Such as Google, Samsung, AKM, synaptic, KDDI, Garmin, Teleca, EBay, Intel etc.It was established on 5th November, 2007, led by Google. It is committed to advance open standards, provide services and deploy handsets using the Android Platform.

#History of AndroidThe history and versions of android are interesting to know.The codenames of android ranges from A to J currently, such as Aster, Blender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwitch, Jelly Bean, KitKat, Lollipop.Let's understand the android history pointly:Initially, Andy Rubin founded Android Incorporation in Palo Alto, California, United States in October, 2003.In 17th August 2005, Google acquired android Incorporation. Since then, it is in the subsidiary of Google Incorporation.The key employees of Android Incorporation are Andy Rubin, Rich Miner, Chris White and Nick Sears.

#Features of AndroidThere are many features of android. They are as follows:It is open-source.Anyone can customize the Android Platform.It provides support for messaging services (SMS and MMS), web browser, storage (SQLite), connectivity (GSM, CDMA, Blue Tooth, Wi-Fi etc.), media, handset layout etc.Wi-Fi hardware access.Shared data stores.Peer-to-Peer supporting using Google Talk

JAVA (JDK 1.8) Eclipse IDE Android Development Tools(ADT 12.0) Android-SDK (2.2)SQLite Database

Technologies Used#

Standard development environment is Eclipse + Android Development Tools plugin + Android SDKDevelopment requires either an Android OS device or an emulatorEmulator has limitations:Performance is poorCamera, etc., simulated using your computers hardwareNo real phone calls or textsGPS data, battery readings, etc. must be simulatedReal device is affected by specific hardware and software configurationAndroid Development

Apps are packaged in .apk format, variant of .jar, then downloaded to device and installed.apks contain .dex files (bytecode), manifest and various other filesManifest contains security and link info, hardware access info, minimum OS release info, etc.

Android Deployment

#Android Versions, Codename and APIVersionCodenameAPI1.0Alpha or Astro Testing11.1Beta or Blender 21.5Cupcake (Ist version)31.6Donut42.1clair72.2Froyo82.3Ginger Bread9,103.0 ,3.1 & 3.3Honey comb12 & 134.0Ice Cream Sandwitch154.1, 4.2 & 4.3Jelly Bean16, 17 and 184.4Kit Kat19,205.0,5.1Lollipop21,22

#Backend Process on AndroidSourceByte Code.dex file.apk fileSignUn-signEmulator(VD)Simulator(RD)Digital SignatureAgeAuthenticationKeyDebug.keystore.android>25 yearjavacDemo.classDVMAAPTClass Demo{PSVM(String str){Sop(hello);}}

Google play storetoolAndroid executable filetools

#Components of AndroidActivity:- An activity is a class that represents a single screen. It is like a Frame in AWT.

Service:-Service is a background process that can run for a long time. There are two types of services Local:-Local service is accessed from within the application Remote:-from other applications running on the same device.

Content Provider:-Content Providers are used to share data between the applications.

Broadcast Receiver:- It is a class which display the information.

#Requirements in App. Development IDE:- Integrated Development Environment

JDK:- Java Development Kit

SDK:- software Development Kit

JDK & SDK:- used to compile

ADT:- Android Development Kit

NDK:- Native Development Kit

Hardware RequirementSystem : Pentium IV 2.4 GHzHard Disk : 40 GB.Monitor : 15 VGA Colour.Mouse : Logitech.RAM : 512 Mb.

Software RequirementOperating system : Windows XP.Coding Language : Java 1.6Tool Kit :Android 2.2IDE :Eclipse

#Requirements of Hardware & Software

#Compilation Process

#Layout in AndroidLayout in android is a class which provide you to background to place so many widgets on to it.Use in Mobile or TablesLinear Layout: divide two parts1.1 Vertical layout1.2 Horizontal layoutRelative LayoutTable LayoutGrid layoutFrame layout

Use in TabletsFragment LayoutSpace

It is a class which is used to display any message for a small duration of time.Syntax:Toast.makeText(context, text, duration) Example:-Toast.MakeText(getApplicationContext(),Hello Toast,3000).show(); #Toast in Android

Toast

#Intent in AndroidIntent :- if we have to communication between two difference components or activity responsible to intent.

Four types of Intent:Explicit intent: Communicate b/w diff. components with in same app.Implicit intent: Communicate b/w diff. components with more than two application.Pending Intent:-It is used in service i.e. particular in alarm & notification. E.g. Battery Low, shut downSticky intent:-It is used in broadcast receiver it invoke a certain process in a repetitive manner. E.g. daily based Alarm

#Adapter in AndroidAdapter is a class which is used to bridge b/w the data element from any data types onto a list .

Types of adapterArray Adapter: used to create bridge b/w the data of array type.Cursor Adapter : used to fetching down the data from specific column.Base Adapter: used in custom designing of list view in order to implement all the inflate of base adapter. Method of base adapter getView() , getCount() , getItem(), getItemID()4. List Adapter: used to create a bridge b/w the data from any list.

#Activity Life CycleWe can control & manage the resource through the life cycle method of activity.There are seven life cycle method of android application.onCreate(): activity is first created.onStart(): acticity become visible to the user.onResume(): activity will start interacting with the user.onPause():activity is not visible to the user.onStop(): activity is no longer visible to the user.onRestart(): after your activity is stopped prior to strat.onDestroy(): activity to destroy

ActivityonCreate()onStart()onResume()onPause()onStop()onDestroy()

#Activity Life Cycle Diagram

#Animation in AndroidAnimation : It is a class which is used for loading all types of animation using base class by the name of animation utils.

Two types of method:Start Animation: used to start the animation to be apply on the widget.Set Animation: used for the consecutive animation to launched simultaneous.

Parameter used for designing :-Set: contains all the recursive parameter used anim.Rotate: used to rotate in 360 deg. Either in clock or anticlock wise dir.Alpha: used to parameter to provide dullness to any widget.Scale: used to parameter to providing to scaling object to any of the widget(zoom in ,zoom out)Translate: used to parameter to move of the widget in x-axis & y-axis coordinates