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

PPTX
Introduction to AngularJS Framework
Raveendra R
 
PPTX
What's new in Angular 2?
Alfred Jett Grandeza
 
PDF
Angularjs tutorial
HarikaReddy115
 
PPTX
Angularjs PPT
Amit Baghel
 
PPTX
Training On Angular Js
Mahima Radhakrishnan
 
PPT
Angular Seminar-js
Mindfire Solutions
 
DOCX
Different way to share data between controllers in angular js
codeandyou forums
 
PPTX
Angular js
Mindtree
 
Introduction to AngularJS Framework
Raveendra R
 
What's new in Angular 2?
Alfred Jett Grandeza
 
Angularjs tutorial
HarikaReddy115
 
Angularjs PPT
Amit Baghel
 
Training On Angular Js
Mahima Radhakrishnan
 
Angular Seminar-js
Mindfire Solutions
 
Different way to share data between controllers in angular js
codeandyou forums
 
Angular js
Mindtree
 

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
 
Ad

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)

PDF
Android Minnebar
Justin Grammens
 
PDF
Android TCJUG
Justin Grammens
 
PPTX
Lecture #1 Creating your first android project
Vitali Pekelis
 
PPTX
Basic android workshop
Thagatpam Tech
 
PDF
How to use data binding in android
InnovationM
 
KEY
Android Workshop
Junda Ong
 
PPT
Beginning Native Android Apps
Gil Irizarry
 
ODP
Geekcamp Android
Hean Hong Leong
 
PDF
Android Intro
Justin Grammens
 
PPTX
Android Development project
Minhaj Kazi
 
PDF
Android tutorial
Abid Khan
 
PDF
android level 3
DevMix
 
PPT
Android Bootcamp Tanzania:understanding ui in_android
Denis Minja
 
PPT
Android
Ravi Shankar
 
PDF
Android 3.0 Portland Java User Group 2011-03-15
sullis
 
PPTX
Holland9 Android Workshop Hogeschool Rotterdam
J B
 
PDF
Native Android Development Practices
Roy Clarkson
 
PPT
Mobile Application Development With Android
guest213e237
 
PPTX
Android terminologies
jerry vasoya
 
PPTX
Android Development Made Easy - With Sample Project
Joemarie Amparo
 
Android Minnebar
Justin Grammens
 
Android TCJUG
Justin Grammens
 
Lecture #1 Creating your first android project
Vitali Pekelis
 
Basic android workshop
Thagatpam Tech
 
How to use data binding in android
InnovationM
 
Android Workshop
Junda Ong
 
Beginning Native Android Apps
Gil Irizarry
 
Geekcamp Android
Hean Hong Leong
 
Android Intro
Justin Grammens
 
Android Development project
Minhaj Kazi
 
Android tutorial
Abid Khan
 
android level 3
DevMix
 
Android Bootcamp Tanzania:understanding ui in_android
Denis Minja
 
Android
Ravi Shankar
 
Android 3.0 Portland Java User Group 2011-03-15
sullis
 
Holland9 Android Workshop Hogeschool Rotterdam
J B
 
Native Android Development Practices
Roy Clarkson
 
Mobile Application Development With Android
guest213e237
 
Android terminologies
jerry vasoya
 
Android Development Made Easy - With Sample Project
Joemarie Amparo
 

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)

PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
DOCX
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
Doc9.....................................
SofiaCollazos
 
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
Software Development Company | KodekX
KodekX
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 

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