You are on page 1of 20

Android

Practical Training
Report By:-
RISHAVH
SRIVASTAV
(BT17CSE002)
B.Tech:-NIT
UTTARAKHAND
Contents
Introduction
History and Versions
First Android Application
Android Architecture
Android Life Cycle
User Interface Components
Android Core Components
Android Data Storage
Conclusion
What is Android
It is a open source software platform and operating
system for mobile devices.
It is based on the Linux kernel.
Developed by Google Andy Rubin (Father of Android)
and later the Open Handset Alliance (OHA).
Android Allows writing managed code in the Java
language.
Android has its own Virtual Machine i.e. DVM
DVM(Dalvik Virtual Machine),which is used for
executing the android application.
Google purchased the initial Developer of the
Software, android incorporated in 2005.
Open Handset Alliance

he
Open Handset Alliance(OHA)
included Several Companies
ANDROIDVERSION
ANDROID VERSION
Version Nickname API level
Android - (API level 1)
-1.0
Android -1.1 - (API level 2)
Android -1.5 Cupcake (API level 3)
Android -1.6 Donut (API level 4)
Android - 2.0 Éclair (API level 5)
Android - 2.0.1 Éclair (API level 6)
Android - 2.1 Éclair (API level 7)
Android - 2.2–2.2.3 Froyo (API level 8)
Android -2.3–2.3.2 Gingerbread (API level 9)
Android - 2.3.3– Gingerbread (API level 10)
2.3.7
Android - 3.0 Honeycomb (API level 11)
Android -3.1 Honeycomb (API level 12)
Android - 3.2 Honeycomb (API level 13)
Android -4.0–4.0.2 Ice Cream Sandwich (API level 14)
Android - 4.0.3– Ice Cream Sandwich (API level 15)
4.0.4
Android - 4.1 Jelly Bean (API level 16)
Android -4.2 Jelly Bean (API level 17)
Android -4.3 Jelly Bean (API level 18)
Android - 4.4 Kit-Kat (API level 19)
Android-4.4W Kit-Kat with wearable extension (API level 20)
Android -5.0 .1 Lollipop (API level 21)
Android -5.1.1 Lollipop (API level 22)
Android -6.0 Marshmallow (API level 23)
Android-7.0 Nougat (API level24)
ANDROIDARCHITECTURE
The software stack is split into Four Layers::

• The application layer

• The application framework

• The libraries and runtime

• The kernel
Activity
Activity Life Cycle :
public class Activity extends ApplicationContext {

protected void onCreate(Bundle savedInstanceState);

protected void onStart();

protected void onRestart();

protected void onResume();

protected void onPause();

protected void onStop();

protected void onDestroy();


}
Intents:
An intent is an abstract description of an
operation to be performed. It can be used with
startActivity to launch an Activity,
broadcastIntent to send it to any interested
BroadcastReceiver components, and
startService(Intent) or bindService(Intent,
ServiceConnection, int) to communicate with
a background Service.
Intent Actions
ACTION_VIEW
ACTION_EDIT
ANDROID_INSERT

ANDROID_LAUNHER
ACTION_DIAL
ACTION_CALL
ACTION_SEND
Intent in AndroidManifest :
<intent-filter>
<action
android:name="android.intent.action.GET_CONTENT" />
<category
android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
Services
BroadCast Receiver
A broadcast receiver is a component that responds
to system-wide broadcast announcements. Many
broadcasts originate from the system—for example,
a broadcast announcing that the screen has turned
off, the battery is low, or a picture was captured.
Apps can also initiate broadcasts—for example, to
let other apps know that some data has been
downloaded to the device and is available for them to
use.
Data Storage in Android
Android provides several options for us to save
persistent application data. The option we choose
depends on our application specific needs, there
are some types of DB in Android.Such Are:-
SharedPreferences
InternalStorage
ExternalStorage
SQLiteDatabases
SQlite DataBase
Prepared By:-
Rishavh Srivastav
BT17CSE002

You might also like