Android tutorial beginner

  • View

  • Download

Embed Size (px)

Text of Android tutorial beginner


AgendaIntroduction of Android Android versions Android Architecture Security Advantages of Android Disadvantage of Android

Why Android ?

What is Android?

It's a consortium of 84 companies such as

Open Handset Alliance (OHA)


API Level

Android in TV

Android in Watch

Android in Music Player


Linux Kernel


Android Runtime

Dalvik VMCore Libraries

Application FrameworkAPI interfaceActivity manager manages application life cycle

Dalvik byte codeWrite app in JavaCompiled in JavaTransformed to Dalvik bytecodeLinux OS Loaded into Dalvik VM

The Dalvik runtime is optimized

Application Components

ActivitiesThey dictate the UI and handle the user interaction to the smart phone screenServicesThey handle background processing associated with an applicationBroadcast ReceiversThey handle communication between Android OS and applicationsContent ProvidersThey handle data and database management issues



Broadcast Receiver

simply respond to broadcast messages from other applications or from the system itself.These messages are sometime called events or intentsMany broadcasts originate from the system for example, a broadcast announcing that the screen has turned off, the battery is low, or a picture was capturedApplications can also initiate broadcasts for example, to let other applications know that some data has been downloaded to the device and is available for them to use

Content Providers

sometimes it is required to share data across applications. This is where content providers become very usefulContent providers let you centralize content in one place and have many different applications access it as neededA content provider manages a shared set of application dataYou can store the data in the file system, an SQLite database, on the web, or any other persistent storage location your application can access


An AndroidIntentis an abstract description of an operation to be performed

It can be used withstartActivityto launch an Activity,broadcastIntentto send it to any interested BroadcastReceiver components

StartService(Intent)orbindService(Intent, ServiceConnection, int)to communicate with a background Service

SecurityAndroid is a multi-process system, in which each application (and parts of the system) runs in its own processMost security between applications and the system is enforced at the process level through standard Linux facilities

Advantages of Android The ability for anyone to customize the Google Android platform It gives you better notificationIt lets you choose your hardware It has better app market(5,00,000 application) A more mature platformSupports all Google services

DisadvantagesWasteful Batteries, This is because the OS is a lot of "process" in the background causing the battery quickly drains Sometimes slow device company issued an official version of Android your ownExtremely inconsistence in design among apps

Do you want to be a Android Developer?