android application

Post on 08-Jul-2015

65 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Here I've demonstrate the Overview of what the android application is actually made up of..!!

TRANSCRIPT

ANDROID APPLICATIONPHASE – I

COMPUTER SCI. DEPARTMENT

AMIRAJ COLLEGE OF ENGG. & TECH.

Contents:

Getting Started Project Components Application Building Blocks

Getting Started with ECLIPS:

Project Components:

src – your source code

gen – auto-generated code

Included libraries

Resourcesi. Drawables (like .png images)ii. Layoutsiii. Values (like strings)

Manifest file

src – Source code src folder contains package of the Application and the external .java files created by the developer.

gen – Auto generated codegen folder contains auto generated .java files for supporting environment of the application.

Included libraries This includes files require to run an application on targeted sdk as well as minimum sdk i.e. selected by developer.

Manifest fileManifest contains security and link info, hardware access info, minimum OS release info, etc.

Application Building Blocks:

Activity

Intent

Service

Broadcast Receiver

Content Provider

ActivityActivity is a single screen with user interaction. An activity maycontain zero or number of fragments. Each activity can then startanother activity in order to perform different actions.

IntentWhat represents your action is called an Intent. It is the description of action during switch between the activity.

ServiceService is the faceless component which run in background.Music player is an example of service. We don’t need to put it onthe screen to hear songs.Downloading via internet is also an example of service. It goeson while the user is interacting with other applications.Service does not stop on closing of an application. It keeps onrunning in background until it’s task is done or the user manuallydestroys it.For example, a service might handle network transactions, playmusic, perform file I/O, or interact with a content provider, allfrom the background.

Broadcast ReceiverBroadcast Receiver receives the system generated messagesabout system intents and display notification on occurrence ofan intent of the Android System.For example, if the battery of your android device is low then theAndroid System will generate the message regarding to the LOWBATTERY and broadcast receiver receives that message fromAndroid System and display the On-Screen notification regardingthe subject.

Content ProviderIt simply enables sharing of data across applications.It provides access to the data of system application i.e.Phonebook, Gallery, etc.Android itself includes content providers that manage data suchas audio, video, images, and personal contact information.With some restrictions, these providers are accessible to anyAndroid application.

Thank YouPresented By,

Atufa I. Saiyed (121080107043)

Raiyan J. Akhunji (121080107044)

top related