Android is an open source and Linux-based operating system for mobile devices such as smartphones and tablet computers. Android was developed by the Open Handset Alliance, led by Google, and other companies. This tutorial will teach you basic Android programming and will also take you through some advance concepts related to Android application development.
2. History of Android
• Android, Inc. – 2003
• Operating system for digital cameras
• Google Acquisition – 2005
• Open Handset Alliance – Nov 2007
– Google, HTC, Sony and Samsung
– Qualcomm and Texas Instruments
• HTC Dream - October 22, 2008
18. Intents
start new Activity
● Dial a number
Intent intent = new Intent(Intent.ACTION_DIAL,
Uri.parse(“tel:97412345”));
● Launch a website
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(“http://www.google.com”));
19. Intents
start new Activity
● Launch another activity
Intent i = new Intent(this, SecondActivity.class)
startActivity(i)
20. Intent Filter
● Registers components as capable of receiving
Intents
● Matches intents to the component (Activity ,
Service, Receivers)
● Declared mostly in AndroidManifest.xml
26. Linear Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" >
<TextView android:text="I am a TextView" />
<Button android:text="I am a Button" />
</LinearLayout>
27. Linear Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation=“horizontal" >
<TextView android:text="I am a TextView" />
<Button android:text="I am a Button" />
</LinearLayout>
36. Linux kernel
• Android built on Linux 2.6 kernel
• Provides security, memory management,
process management, network stack,
and driver model
• Abstraction layer between hardware and
the software stack
37. Libraries
• A set of C/C++ libraries exposed to
developers through the application
framework