SlideShare une entreprise Scribd logo
1  sur  22
Android Tutorial for
Beginners
Powered by:-www.javatpoint.com
Basics of Android
What is Android?
Android is a mobile operating system based on the linux
and kernel. It's maintained by Google, and comes in a few
different versions. At the time of writing, mobile phones
run a variant of version 2 of Android, while most new
tablets run a variant of version 3.
Android's standard layout is to have a series of Home
screens, which can contain shortcuts to launch apps, or can
contain widgets, which are small programs that serve a
single function, such as controlling your music or displaying
Facebook updates.
History and version of Android
It is very interesting to know history and version of android.
Android was founded by Andy Rubin, Rich Minner, and
Charris White.
The early intentions of the company were to develop an
advanced operating system for digital cameras, when it
was realized that the market for the devices was not large
enough, and diverted their efforts to producing a smart
phone operating system to rival those of Symbian and
Windows Mobile.
Initially android was developed for Television, video
games, digital cameras and electronics.
Later android apps were shifted to mobiles.
After 2 years Google bought the Android in 2005.
In 2007 Google officially announced development of Android
OS.
Features are going to be added one version to another
version.
Versions of Android
Versions of Android
Version Code name API
1.5 Cupcake 3
1.6 Donut 4
2.1 Eclair 7
2.2 Froyo 8
2.3 Gingerbread 9 and 10
3.1 and 3.3 Honeycomb 12 and 13
4.0 Ice Cream Sandwitch 15
4.1, 4.2 and 4.3 Jelly Bean 16, 17 and 18
4.4 KitKat 19
Android core building block
A component is simply a piece of code that has a well defined life cycle.
e.g.-Activity, Receiver, service etc.
The core building blocks or fundamental components of android are
activities, views, intents, services, content providers, fragments and
AndroidManifest.xml.
 Activity
An activity is a class that represents a single screen. It is like a frame in
AWT.
 View
A view is the UI element such as button, label, text, field etc.
Anything that you see is a view.
 Intent
intent is used to invoke components. It is mainly is used to:
Android core building block
Start the service
Launch an activity
Display a web page
Display a list of contacts
Broadcast a message
Dial a phone call etc.
Services
Service is background process that can run
for a long time.
 Content provider
Content provider are used to share data between the
applications.
 Fragment
Fragment are like part of activity. An activity can display one
or more fragments on the screen at the same time.
 Androidmanifest.xml
It contains information about activities, content provider,
permissions etc.
How to set up Android for eclipse IDE
There are following steps required for set up
eclipse IDE:
1. Install JDK
2. Download and install the eclipse for
developing android application
3. Download and install the android SDK
4. Install the ADT plugin for eclipse
5. Configure the ADT plugin
6. Create AVD
7. Create the hello android application
For more info visit: http://www.javatpoint.com/how-to-setup-
android-for-eclipse-ide
How to make android apps
In this page we are creating the simple
example of android using eclipse IDE.
1. Create new android project
2. Write the message
3. Run the android application
Simple android example
Hello android example
1) Create a new android project
1. select File>New>Project…..
2. select android project and click next
3. Fill the details in this dialog box and
click finish
2) write the message
package com.example.helloandroid;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView textview=new TextView(this);
textview.setText("Hello Android!");
setContentView(textview);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if
it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
3) Run the android application
• right click on the project >run
as..>android application
Internal working of hello android example
Android UI widgets
There are many UI widgets with simple example such as button
edittext, autocompletetextview, togglebutton, datepiker,
timepicker, progressbar etc.
Working with buttons
Learn how to perform event handling on button click.
• Android toast
Displays information for the short duration of time.
• Custom toast
we can display the image on toast.
• Check box
application of simple food ordering.
• Toggle button
it has two states on/off.
Alert dialog
Alert dialog containing the message with ok and cancel
buttons.
• Spinner
display the multiple options but only selected at a time.
• Ratingbar
Ratingbar display rating bar.
• Datepicker
datepicker displays datepicker dialog that can be used to
pick the date.
• Timepicker
it can be used to pick the time.
Android lifecycle of Activity
Android fragments
A fragment is an independent component which can be
used by an activity. Fragments represents multiple screen
inside one activity.
A fragment runs in the context of an activity, but has its
own life cycle and typically its own user interface. It is also
possible to define fragments without an user interface, i.e.,
headless fragments.
Fragments make it easy to reuse components in different
layouts, e.g., you can build single-pane layouts for
handsets (phones) and multi-pane layouts for tablets.
This is not limited to tablets; for example, you can use
fragments also to support different layout for landscape
and portrait orientation on a smartphone.
Advantages of using fragments

Contenu connexe

Tendances

What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]Sittiphol Phanvilai
 
Android - From Zero to Hero @ DEVit 2017
Android - From Zero to Hero @ DEVit 2017Android - From Zero to Hero @ DEVit 2017
Android - From Zero to Hero @ DEVit 2017Ivo Neskovic
 
Android architecture
Android architecture Android architecture
Android architecture Trong-An Bui
 
Android application structure
Android application structureAndroid application structure
Android application structureAlexey Ustenko
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-pptSrijib Roy
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App DevelopmentMike Kvintus
 
Arduino - Android Workshop Presentation
Arduino - Android Workshop PresentationArduino - Android Workshop Presentation
Arduino - Android Workshop PresentationHem Shrestha
 
Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basicsHasam Panezai
 
Android Application Fundamentals
Android Application FundamentalsAndroid Application Fundamentals
Android Application FundamentalsVikalp Jain
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android Ranjith Kumar
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportAtul Panjwani
 
Yourstory Android Workshop
Yourstory Android WorkshopYourstory Android Workshop
Yourstory Android WorkshopArvind Devaraj
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentAly Abdelkareem
 
Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Ahsanul Karim
 
Introduction to Android development - Presentation
Introduction to Android development - PresentationIntroduction to Android development - Presentation
Introduction to Android development - PresentationAtul Panjwani
 

Tendances (20)

What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
 
Android - From Zero to Hero @ DEVit 2017
Android - From Zero to Hero @ DEVit 2017Android - From Zero to Hero @ DEVit 2017
Android - From Zero to Hero @ DEVit 2017
 
Android programming basics
Android programming basicsAndroid programming basics
Android programming basics
 
Android architecture
Android architecture Android architecture
Android architecture
 
Android application structure
Android application structureAndroid application structure
Android application structure
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-ppt
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Arduino - Android Workshop Presentation
Arduino - Android Workshop PresentationArduino - Android Workshop Presentation
Arduino - Android Workshop Presentation
 
Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basics
 
Android Application Fundamentals
Android Application FundamentalsAndroid Application Fundamentals
Android Application Fundamentals
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation Report
 
Yourstory Android Workshop
Yourstory Android WorkshopYourstory Android Workshop
Yourstory Android Workshop
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android
AndroidAndroid
Android
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
 
Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Introduction to Android development - Presentation
Introduction to Android development - PresentationIntroduction to Android development - Presentation
Introduction to Android development - Presentation
 
Android basics
Android basicsAndroid basics
Android basics
 

Similaire à Android Tutorial for Beginners: A Guide to the Basics

Android terminologies
Android terminologiesAndroid terminologies
Android terminologiesjerry vasoya
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docPalakjaiswal43
 
Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Amit Saxena
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Androidguest213e237
 
Android Homescreen Widgets Demystified
Android Homescreen Widgets DemystifiedAndroid Homescreen Widgets Demystified
Android Homescreen Widgets DemystifiedPearl Chen
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidShrijan Tiwari
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialAjai Kumar
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidSwapnali Pawar
 
Android Development project
Android Development projectAndroid Development project
Android Development projectMinhaj Kazi
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development pptsaitej15
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Mobile application development
Mobile application developmentMobile application development
Mobile application developmentumesh patil
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answerskavinilavuG
 

Similaire à Android Tutorial for Beginners: A Guide to the Basics (20)

Android terminologies
Android terminologiesAndroid terminologies
Android terminologies
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.doc
 
Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1
 
Notes Unit3.pptx
Notes Unit3.pptxNotes Unit3.pptx
Notes Unit3.pptx
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
 
cpuk10745
cpuk10745cpuk10745
cpuk10745
 
Android Minnebar
Android MinnebarAndroid Minnebar
Android Minnebar
 
Android Homescreen Widgets Demystified
Android Homescreen Widgets DemystifiedAndroid Homescreen Widgets Demystified
Android Homescreen Widgets Demystified
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android Development project
Android Development projectAndroid Development project
Android Development project
 
Android app development
Android app developmentAndroid app development
Android app development
 
IMPLEMENTATION OF SECURE DOOR AUTOMATION SYSTEMS USING INFRARED SENSORS
IMPLEMENTATION OF SECURE DOOR AUTOMATION SYSTEMS USING  INFRARED SENSORS IMPLEMENTATION OF SECURE DOOR AUTOMATION SYSTEMS USING  INFRARED SENSORS
IMPLEMENTATION OF SECURE DOOR AUTOMATION SYSTEMS USING INFRARED SENSORS
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
 
Android app development
Android app developmentAndroid app development
Android app development
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
 

Plus de JavaTpoint.Com

5 Reason, Why Python Popular.pdf
5 Reason, Why Python Popular.pdf5 Reason, Why Python Popular.pdf
5 Reason, Why Python Popular.pdfJavaTpoint.Com
 
History and Versions of Java Programming.pdf
History and Versions of Java Programming.pdfHistory and Versions of Java Programming.pdf
History and Versions of Java Programming.pdfJavaTpoint.Com
 
4 Network Certifications for Your IT Career in 2022.pdf
4 Network Certifications for Your IT Career in 2022.pdf4 Network Certifications for Your IT Career in 2022.pdf
4 Network Certifications for Your IT Career in 2022.pdfJavaTpoint.Com
 
Skills required for an IoT Developer.pdf
Skills required for an IoT Developer.pdfSkills required for an IoT Developer.pdf
Skills required for an IoT Developer.pdfJavaTpoint.Com
 
CCNA Interview Questions and Answer ppt - JavaTpoint
CCNA Interview Questions and Answer ppt - JavaTpointCCNA Interview Questions and Answer ppt - JavaTpoint
CCNA Interview Questions and Answer ppt - JavaTpointJavaTpoint.Com
 
Jsoup Tutorial for Beginners - Javatpoint
Jsoup Tutorial for Beginners - JavatpointJsoup Tutorial for Beginners - Javatpoint
Jsoup Tutorial for Beginners - JavatpointJavaTpoint.Com
 
Cloud computing tutorial for beginners
Cloud computing tutorial for beginnersCloud computing tutorial for beginners
Cloud computing tutorial for beginnersJavaTpoint.Com
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?JavaTpoint.Com
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointJavaTpoint.Com
 

Plus de JavaTpoint.Com (9)

5 Reason, Why Python Popular.pdf
5 Reason, Why Python Popular.pdf5 Reason, Why Python Popular.pdf
5 Reason, Why Python Popular.pdf
 
History and Versions of Java Programming.pdf
History and Versions of Java Programming.pdfHistory and Versions of Java Programming.pdf
History and Versions of Java Programming.pdf
 
4 Network Certifications for Your IT Career in 2022.pdf
4 Network Certifications for Your IT Career in 2022.pdf4 Network Certifications for Your IT Career in 2022.pdf
4 Network Certifications for Your IT Career in 2022.pdf
 
Skills required for an IoT Developer.pdf
Skills required for an IoT Developer.pdfSkills required for an IoT Developer.pdf
Skills required for an IoT Developer.pdf
 
CCNA Interview Questions and Answer ppt - JavaTpoint
CCNA Interview Questions and Answer ppt - JavaTpointCCNA Interview Questions and Answer ppt - JavaTpoint
CCNA Interview Questions and Answer ppt - JavaTpoint
 
Jsoup Tutorial for Beginners - Javatpoint
Jsoup Tutorial for Beginners - JavatpointJsoup Tutorial for Beginners - Javatpoint
Jsoup Tutorial for Beginners - Javatpoint
 
Cloud computing tutorial for beginners
Cloud computing tutorial for beginnersCloud computing tutorial for beginners
Cloud computing tutorial for beginners
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpoint
 

Dernier

USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 

Dernier (20)

USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 

Android Tutorial for Beginners: A Guide to the Basics

  • 1. Android Tutorial for Beginners Powered by:-www.javatpoint.com
  • 2. Basics of Android What is Android? Android is a mobile operating system based on the linux and kernel. It's maintained by Google, and comes in a few different versions. At the time of writing, mobile phones run a variant of version 2 of Android, while most new tablets run a variant of version 3. Android's standard layout is to have a series of Home screens, which can contain shortcuts to launch apps, or can contain widgets, which are small programs that serve a single function, such as controlling your music or displaying Facebook updates.
  • 3. History and version of Android It is very interesting to know history and version of android. Android was founded by Andy Rubin, Rich Minner, and Charris White. The early intentions of the company were to develop an advanced operating system for digital cameras, when it was realized that the market for the devices was not large enough, and diverted their efforts to producing a smart phone operating system to rival those of Symbian and Windows Mobile. Initially android was developed for Television, video games, digital cameras and electronics.
  • 4. Later android apps were shifted to mobiles. After 2 years Google bought the Android in 2005. In 2007 Google officially announced development of Android OS. Features are going to be added one version to another version.
  • 6. Versions of Android Version Code name API 1.5 Cupcake 3 1.6 Donut 4 2.1 Eclair 7 2.2 Froyo 8 2.3 Gingerbread 9 and 10 3.1 and 3.3 Honeycomb 12 and 13 4.0 Ice Cream Sandwitch 15 4.1, 4.2 and 4.3 Jelly Bean 16, 17 and 18 4.4 KitKat 19
  • 7. Android core building block A component is simply a piece of code that has a well defined life cycle. e.g.-Activity, Receiver, service etc. The core building blocks or fundamental components of android are activities, views, intents, services, content providers, fragments and AndroidManifest.xml.  Activity An activity is a class that represents a single screen. It is like a frame in AWT.  View A view is the UI element such as button, label, text, field etc. Anything that you see is a view.  Intent intent is used to invoke components. It is mainly is used to:
  • 9. Start the service Launch an activity Display a web page Display a list of contacts Broadcast a message Dial a phone call etc. Services Service is background process that can run for a long time.
  • 10.  Content provider Content provider are used to share data between the applications.  Fragment Fragment are like part of activity. An activity can display one or more fragments on the screen at the same time.  Androidmanifest.xml It contains information about activities, content provider, permissions etc.
  • 11. How to set up Android for eclipse IDE There are following steps required for set up eclipse IDE: 1. Install JDK 2. Download and install the eclipse for developing android application 3. Download and install the android SDK 4. Install the ADT plugin for eclipse 5. Configure the ADT plugin 6. Create AVD 7. Create the hello android application For more info visit: http://www.javatpoint.com/how-to-setup- android-for-eclipse-ide
  • 12. How to make android apps In this page we are creating the simple example of android using eclipse IDE. 1. Create new android project 2. Write the message 3. Run the android application
  • 13. Simple android example Hello android example 1) Create a new android project 1. select File>New>Project….. 2. select android project and click next 3. Fill the details in this dialog box and click finish
  • 14. 2) write the message package com.example.helloandroid; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textview=new TextView(this); textview.setText("Hello Android!"); setContentView(textview); }
  • 15. @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.activity_main, menu); return true; } }
  • 16. 3) Run the android application • right click on the project >run as..>android application
  • 17. Internal working of hello android example
  • 18. Android UI widgets There are many UI widgets with simple example such as button edittext, autocompletetextview, togglebutton, datepiker, timepicker, progressbar etc. Working with buttons Learn how to perform event handling on button click. • Android toast Displays information for the short duration of time. • Custom toast we can display the image on toast. • Check box application of simple food ordering. • Toggle button it has two states on/off.
  • 19. Alert dialog Alert dialog containing the message with ok and cancel buttons. • Spinner display the multiple options but only selected at a time. • Ratingbar Ratingbar display rating bar. • Datepicker datepicker displays datepicker dialog that can be used to pick the date. • Timepicker it can be used to pick the time.
  • 21. Android fragments A fragment is an independent component which can be used by an activity. Fragments represents multiple screen inside one activity. A fragment runs in the context of an activity, but has its own life cycle and typically its own user interface. It is also possible to define fragments without an user interface, i.e., headless fragments.
  • 22. Fragments make it easy to reuse components in different layouts, e.g., you can build single-pane layouts for handsets (phones) and multi-pane layouts for tablets. This is not limited to tablets; for example, you can use fragments also to support different layout for landscape and portrait orientation on a smartphone. Advantages of using fragments