SlideShare a Scribd company logo
Introduction to Android
Programming
www.collaborationtech.co.in
Bengaluru INDIA
Presentation By
Ramananda M.S Rao
Content
Content
Core Java
XML Technologies
Introduction to Android
Stack
Get Started
Project Structure
UI – Layouts and Views
Events, Dialogs and Messages
Resources
Preferences and Files
Application Components and Life Cycle
Content Providers
Database Storage
Multimedia
Graphics and Animation
Networking
Threads
Notifications
Deployment
Debugging Applications
Security Framework
Search Service
Location Service
Project
About Us
www.collaborationtech.co.in
Introduction
Android is an open source and Linux-based Operating
System for mobile devices such as smartphones and tablet
computers.
Android offers a unified approach to application
development for mobile devices which means developers
need only develop for Android, and their applications
should be able to run on different devices powered by
Android.
Multiple companies producing Android phones like
Samsung, HTC, LG, Motorola,LAVA and many others.
www.collaborationtech.co.in
Project Structure
www.collaborationtech.co.in
Android Architecture
www.collaborationtech.co.in
Get Started
Srccomexamplehelloworld
MainActivity.java
package com.example.helloworld;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
www.collaborationtech.co.in
Get Started
ResLayout activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@drawable/im_1"
tools:context="com.example.helloworld.MainActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
android:textColor="@color/titlecolor"
android:textSize="20sp" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_below="@+id/textView1"
android:layout_marginTop="16dp"
android:text="Welcome to Collaboration Technologies"
android:textAppearance="?android:attr/textAppearanceSmall" />
</RelativeLayout>
www.collaborationtech.co.in
Get Started
ResMenu main.xml
<menu
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.helloworld.MainActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
</menu>
www.collaborationtech.co.in
Get Started
Resvaluesstrings.xml
<?xml version="1.0" encoding="utf-8"?><resources>
<string name="app_name">Hello World</string>
<string name="hello_world">Collaboration Technologies</string>
<string name="action_settings">Settings</string>
</resources>
Running the Application :
Let's try to run our Hello World! application we just created. I assume
you had created your AVD while doing environment setup. To run the
app from Eclipse, open one of your project's activity files and click
Run icon from the toolbar. Eclipse installs the app on your AVD and
starts it and if everything is fine with your setup and application, it
will display the output Emulator window.
www.collaborationtech.co.in
Follow us on Social
Facebook: https://www.facebook.com/collaborationtechnologies/
Twitter : https://twitter.com/collaboration09
Google Plus : https://plus.google.com/100704494006819853579
LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545
Instagram : https://instagram.com/collaborationtechnologies
YouTube :
https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg
Skype : facebook:ramananda.rao.7
WhatsApp : +91 9886272445
www.collaborationtech.co.in
THANK YOU
About Us

More Related Content

What's hot (20)

PPTX
Introduction to AngularJS
David Parsons
 
PDF
Angular JS Introduction
Dhyego Fernando
 
PDF
AngularJS : Superheroic JavaScript MVW Framework
Edureka!
 
PPTX
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
PDF
AngularJS
Hiten Pratap Singh
 
PDF
Angular JS - Develop Responsive Single Page Application
Edureka!
 
PDF
One Weekend With AngularJS
Yashobanta Bai
 
PPTX
Angular js
ronhall13
 
PDF
AngularJS - introduction & how it works?
Alexe Bogdan
 
PPTX
Angularjs overview
VickyCmd
 
PDF
Introduction to Angular Js
Professional Guru
 
PPTX
Modules in AngularJs
K Arunkumar
 
PPTX
Angular workshop
hoa long
 
PDF
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
PPTX
Mean stack Magics
Aishura Aishu
 
PPTX
Overview about AngularJS Framework
Camilo Lopes
 
PDF
Angular Project Report
Kodexhub
 
PPTX
Starting with angular js
jagriti srivastava
 
PPTX
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
Introduction to AngularJS
David Parsons
 
Angular JS Introduction
Dhyego Fernando
 
AngularJS : Superheroic JavaScript MVW Framework
Edureka!
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
Angular JS - Develop Responsive Single Page Application
Edureka!
 
One Weekend With AngularJS
Yashobanta Bai
 
Angular js
ronhall13
 
AngularJS - introduction & how it works?
Alexe Bogdan
 
Angularjs overview
VickyCmd
 
Introduction to Angular Js
Professional Guru
 
Modules in AngularJs
K Arunkumar
 
Angular workshop
hoa long
 
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
Mean stack Magics
Aishura Aishu
 
Overview about AngularJS Framework
Camilo Lopes
 
Angular Project Report
Kodexhub
 
Starting with angular js
jagriti srivastava
 
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 

Viewers also liked (6)

PPTX
Introduction to Android programming
Sirwan Afifi
 
PPTX
Introduction to Android Programming
'Zamin Mammadov
 
PDF
Introduction to Android Programming
CourseHunt
 
PPT
Intro to Android Programming
Peter van der Linden
 
PDF
Android programming introduction
Yi-Lung Tsai
 
PDF
[Android] Introduction to Android Programming
Nikmesoft Ltd
 
Introduction to Android programming
Sirwan Afifi
 
Introduction to Android Programming
'Zamin Mammadov
 
Introduction to Android Programming
CourseHunt
 
Intro to Android Programming
Peter van der Linden
 
Android programming introduction
Yi-Lung Tsai
 
[Android] Introduction to Android Programming
Nikmesoft Ltd
 
Ad

Similar to Introduction to Android Programming (20)

PPTX
Chapter 2 lesson-1 adding the action bar
Kalluri Vinay Reddy
 
PPTX
ActionBarCompat Tutorial-Part 1(Prepare and Setup)
Haining Lee
 
KEY
Android Workshop
Junda Ong
 
PPTX
Android ui with xml
Egerton University
 
PPT
Getting started with android studio
Reham Maher El-Safarini
 
PPT
Android activity, service, and broadcast recievers
Jagdish Gediya
 
PDF
Using android's action bar
Danilo Freitas de Souza
 
PPT
Android application development for TresmaxAsia
Michael Angelo Rivera
 
PDF
Introduction to Android Development
Aly Abdelkareem
 
PPTX
Project anatomy & hello world
nationalmobileapps
 
PDF
Android application development workshop day1
Borhan Otour
 
PPTX
Android Development Made Easy - With Sample Project
Joemarie Amparo
 
DOCX
Android action bar and notifications-chapter16
Dr. Ramkumar Lakshminarayanan
 
PDF
Android studio
Andri Yabu
 
PDF
Android application development workshop day1
Borhan Otour
 
PPTX
First Steps in Android Development with Eclipse and Xamarin
Sasha Goldshtein
 
PPT
Android
Ravi Shankar
 
PPTX
Android session 2-behestee
Hussain Behestee
 
PPT
Android ui patterns
Mobile March
 
PPT
Android ui patterns
vpulec
 
Chapter 2 lesson-1 adding the action bar
Kalluri Vinay Reddy
 
ActionBarCompat Tutorial-Part 1(Prepare and Setup)
Haining Lee
 
Android Workshop
Junda Ong
 
Android ui with xml
Egerton University
 
Getting started with android studio
Reham Maher El-Safarini
 
Android activity, service, and broadcast recievers
Jagdish Gediya
 
Using android's action bar
Danilo Freitas de Souza
 
Android application development for TresmaxAsia
Michael Angelo Rivera
 
Introduction to Android Development
Aly Abdelkareem
 
Project anatomy & hello world
nationalmobileapps
 
Android application development workshop day1
Borhan Otour
 
Android Development Made Easy - With Sample Project
Joemarie Amparo
 
Android action bar and notifications-chapter16
Dr. Ramkumar Lakshminarayanan
 
Android studio
Andri Yabu
 
Android application development workshop day1
Borhan Otour
 
First Steps in Android Development with Eclipse and Xamarin
Sasha Goldshtein
 
Android
Ravi Shankar
 
Android session 2-behestee
Hussain Behestee
 
Android ui patterns
Mobile March
 
Android ui patterns
vpulec
 
Ad

More from Raveendra R (6)

PPTX
Introduction to Spring Framework
Raveendra R
 
PPTX
Introduction to Hibernate Framework
Raveendra R
 
PPTX
Introduction to JSON & AJAX
Raveendra R
 
PPTX
Introduction to JavaScript Programming
Raveendra R
 
PPTX
Introduction to Core Java Programming
Raveendra R
 
PPTX
Introduction to Python Basics Programming
Raveendra R
 
Introduction to Spring Framework
Raveendra R
 
Introduction to Hibernate Framework
Raveendra R
 
Introduction to JSON & AJAX
Raveendra R
 
Introduction to JavaScript Programming
Raveendra R
 
Introduction to Core Java Programming
Raveendra R
 
Introduction to Python Basics Programming
Raveendra R
 

Recently uploaded (20)

PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 

Introduction to Android Programming

  • 2. Content Content Core Java XML Technologies Introduction to Android Stack Get Started Project Structure UI – Layouts and Views Events, Dialogs and Messages Resources Preferences and Files Application Components and Life Cycle Content Providers Database Storage Multimedia Graphics and Animation Networking Threads Notifications Deployment Debugging Applications Security Framework Search Service Location Service Project About Us www.collaborationtech.co.in
  • 3. Introduction Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. Android offers a unified approach to application development for mobile devices which means developers need only develop for Android, and their applications should be able to run on different devices powered by Android. Multiple companies producing Android phones like Samsung, HTC, LG, Motorola,LAVA and many others. www.collaborationtech.co.in
  • 6. Get Started Srccomexamplehelloworld MainActivity.java package com.example.helloworld; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } } www.collaborationtech.co.in
  • 7. Get Started ResLayout activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:background="@drawable/im_1" tools:context="com.example.helloworld.MainActivity" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" android:textColor="@color/titlecolor" android:textSize="20sp" /> <TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/textView1" android:layout_below="@+id/textView1" android:layout_marginTop="16dp" android:text="Welcome to Collaboration Technologies" android:textAppearance="?android:attr/textAppearanceSmall" /> </RelativeLayout> www.collaborationtech.co.in
  • 9. Get Started Resvaluesstrings.xml <?xml version="1.0" encoding="utf-8"?><resources> <string name="app_name">Hello World</string> <string name="hello_world">Collaboration Technologies</string> <string name="action_settings">Settings</string> </resources> Running the Application : Let's try to run our Hello World! application we just created. I assume you had created your AVD while doing environment setup. To run the app from Eclipse, open one of your project's activity files and click Run icon from the toolbar. Eclipse installs the app on your AVD and starts it and if everything is fine with your setup and application, it will display the output Emulator window. www.collaborationtech.co.in
  • 10. Follow us on Social Facebook: https://www.facebook.com/collaborationtechnologies/ Twitter : https://twitter.com/collaboration09 Google Plus : https://plus.google.com/100704494006819853579 LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545 Instagram : https://instagram.com/collaborationtechnologies YouTube : https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg Skype : facebook:ramananda.rao.7 WhatsApp : +91 9886272445 www.collaborationtech.co.in THANK YOU