SlideShare una empresa de Scribd logo
1 de 16
Lab session – 1
Setting up the Android
Development Environment

Thenraja Vettivelraj
Department of Computer science
Soran University
Getting Started with Android
•

•

•
•
•
•

JDK + Eclipse + ADT + SDK = Android development tools
Installing JDK:
Applications are written using the Java programming language and run on Dalvik, a custom virtual
machine designed for embedded use which runs on top of a Linux kernel.(Will be discussed in the
class hours)
First you need a copy of Java. All the Android development tools require it, and programs you write
will be using the Java language.
Note: JRE is not enough you need JDK. Make sure that you have installed the latest version of JDK.
To verify that you have installed java in your computer, run the following command from the
command prompt. Java -version
You should see something like this.
Getting started with Android
• If you haven’t installed java in your computer. Follow this link
and download the JDK Click here to download JDK
• Note: Make sure that you have downloaded the correct
version of the JDK. For example: Windows 32 bit.
 Get the Android SDK
• Before we start programming the android application we need
to set up the programming environment. The best resource for
developing Android apps is Android Developers.
• The Android SDK provides you the API libraries and
developer tools necessary to build, test, and debug apps for
Android.
Getting started with Android
• With a single download, the ADT Bundle includes everything
you need to begin developing apps:
1. Eclipse + ADT plugin
2. Android SDK Tools
3. Android Platform-tools
4. The latest Android platform
5. The latest Android system image for the emulator
Click here to get the ADT Bundle
• Note: Make sure that you have downloaded the correct
version of the ADT Bundle. For example: Windows 32 bit.
• There exists an option called other platforms where you can
download the ADT for other platforms as well like Mac and
linux.
Getting Started with Android
• If you are using an existing IDE you can go to the option Use
an excising IDE where you can download the SDK tools.
• Note: I recommend everyone to install the ADT
bundle, which is already loaded with the Android Developer
Tools plugin and the SDK and is ready to go.
 Setting Up the ADT Bundle
• Unpack the ZIP file (named adt-bundle-<os_platform>.zip)
and save it to a desired location, such as a "Development"
directory in your home directory.
• Open the adt-bundle-<os_platform>/eclipse/ directory and
launch eclipse.
• Now you are ready to build your first application in android.
Getting Started with Android
• Note: Don’t move any of the files from the default directory
to different location, if so it may not function properly.
• Eclipse IDE allows you to create and debug your Java
code, and manage the various resources that normally are
used in the making of an Android app.
• ADT (Android Developer Tools) is a plugin for Eclipse that
provides a suite of tools that are integrated with the Eclipse
IDE. It offers you access to many features that help you
develop Android applications quickly.
• SDK (Software Development Kit) that enables developers to
create applications for the Android platform. The
Android SDK includes sample projects with source
code, development tools, an emulator, and required libraries
to build Android applications.
Getting started with Android
• Open Eclipse by clicking on the eclipse icon
from the extracted folder.
Getting started with Android
• When you click on the Eclipse icon, this screen will appear
Getting started with Android
Getting started with Android
Getting started with Android
Getting started with Android
Getting started with Android
Getting started with Android
Getting started with Android
•

o
o

Android Virtual Device (AVD):
Defining:
Window-> Android Virtual Device Manager
On Android Virtual Device Tab click on “New” – Then create AVD as shown
Keywords
• Plug-in – A hardware or software module that adds a
specific feature or service to a larger system. The idea is that the new
component simply plugs in to the existing system.
For example, there are number of plug-ins for the Netscape
Navigator browser that enable it to display different types of audio
or video messages.

• IDE - A programming environment integrated into a software
application that provides a GUI builder, a text or code
editor, a compiler and/or interpreter and a debugger.
For example, Visual Studio, Eclipse are all examples of IDEs.

Más contenido relacionado

La actualidad más candente

Introduction to everything around Android
Introduction to everything around AndroidIntroduction to everything around Android
Introduction to everything around AndroidBipin Jethwani
 
Android the first app - hello world - copy
Android   the first app - hello world - copyAndroid   the first app - hello world - copy
Android the first app - hello world - copyDeepa Rani
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologiesjerry vasoya
 
Android life cycle
Android life cycleAndroid life cycle
Android life cycle瑋琮 林
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
Android OS & SDK - Getting Started
Android OS & SDK - Getting StartedAndroid OS & SDK - Getting Started
Android OS & SDK - Getting StartedHemant Chhapoliya
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android codingHari Krishna
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming BasicsEueung Mulyana
 
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 Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development WorkshopPeter Robinett
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from ScratchTaufan Erfiyanto
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themesDeepa Rani
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setupChina Bigs
 

La actualidad más candente (20)

Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Introduction to everything around Android
Introduction to everything around AndroidIntroduction to everything around Android
Introduction to everything around Android
 
Android the first app - hello world - copy
Android   the first app - hello world - copyAndroid   the first app - hello world - copy
Android the first app - hello world - copy
 
Android course (lecture2)
Android course (lecture2)Android course (lecture2)
Android course (lecture2)
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologies
 
Android life cycle
Android life cycleAndroid life cycle
Android life cycle
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
Android OS & SDK - Getting Started
Android OS & SDK - Getting StartedAndroid OS & SDK - Getting Started
Android OS & SDK - Getting Started
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android coding
 
Android tutorial1
Android tutorial1Android tutorial1
Android tutorial1
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming Basics
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
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 Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development Workshop
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from Scratch
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themes
 
Android session 1
Android session 1Android session 1
Android session 1
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
 

Similar a Setting up Android Development Environment

03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application DevelopmentArief Gunawan
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android ApplicationNandini Prabhu
 
Android installation
Android installationAndroid installation
Android installationDurai S
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions newJoe Jacob
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Javaamaankhan
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio OverviewSalim Hosen
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi androidsusijanny
 
Android app development
Android app developmentAndroid app development
Android app developmentAbhishek Saini
 

Similar a Setting up Android Development Environment (20)

03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android Application
 
Android installation
Android installationAndroid installation
Android installation
 
ANDROID PPT 1.pdf
ANDROID PPT 1.pdfANDROID PPT 1.pdf
ANDROID PPT 1.pdf
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
Android Overview
Android OverviewAndroid Overview
Android Overview
 
How to install android sdk
How to install android sdkHow to install android sdk
How to install android sdk
 
Android
AndroidAndroid
Android
 
NDK Introduction
NDK IntroductionNDK Introduction
NDK Introduction
 
AndEngine
AndEngineAndEngine
AndEngine
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio Overview
 
Android Basic
Android BasicAndroid Basic
Android Basic
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android app development
Android app developmentAndroid app development
Android app development
 
Android NDK
Android NDKAndroid NDK
Android NDK
 
Android ndk
Android ndkAndroid ndk
Android ndk
 

Último

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Último (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

Setting up Android Development Environment

  • 1. Lab session – 1 Setting up the Android Development Environment Thenraja Vettivelraj Department of Computer science Soran University
  • 2. Getting Started with Android •  • • • • • JDK + Eclipse + ADT + SDK = Android development tools Installing JDK: Applications are written using the Java programming language and run on Dalvik, a custom virtual machine designed for embedded use which runs on top of a Linux kernel.(Will be discussed in the class hours) First you need a copy of Java. All the Android development tools require it, and programs you write will be using the Java language. Note: JRE is not enough you need JDK. Make sure that you have installed the latest version of JDK. To verify that you have installed java in your computer, run the following command from the command prompt. Java -version You should see something like this.
  • 3. Getting started with Android • If you haven’t installed java in your computer. Follow this link and download the JDK Click here to download JDK • Note: Make sure that you have downloaded the correct version of the JDK. For example: Windows 32 bit.  Get the Android SDK • Before we start programming the android application we need to set up the programming environment. The best resource for developing Android apps is Android Developers. • The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.
  • 4. Getting started with Android • With a single download, the ADT Bundle includes everything you need to begin developing apps: 1. Eclipse + ADT plugin 2. Android SDK Tools 3. Android Platform-tools 4. The latest Android platform 5. The latest Android system image for the emulator Click here to get the ADT Bundle • Note: Make sure that you have downloaded the correct version of the ADT Bundle. For example: Windows 32 bit. • There exists an option called other platforms where you can download the ADT for other platforms as well like Mac and linux.
  • 5. Getting Started with Android • If you are using an existing IDE you can go to the option Use an excising IDE where you can download the SDK tools. • Note: I recommend everyone to install the ADT bundle, which is already loaded with the Android Developer Tools plugin and the SDK and is ready to go.  Setting Up the ADT Bundle • Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to a desired location, such as a "Development" directory in your home directory. • Open the adt-bundle-<os_platform>/eclipse/ directory and launch eclipse. • Now you are ready to build your first application in android.
  • 6. Getting Started with Android • Note: Don’t move any of the files from the default directory to different location, if so it may not function properly. • Eclipse IDE allows you to create and debug your Java code, and manage the various resources that normally are used in the making of an Android app. • ADT (Android Developer Tools) is a plugin for Eclipse that provides a suite of tools that are integrated with the Eclipse IDE. It offers you access to many features that help you develop Android applications quickly. • SDK (Software Development Kit) that enables developers to create applications for the Android platform. The Android SDK includes sample projects with source code, development tools, an emulator, and required libraries to build Android applications.
  • 7. Getting started with Android • Open Eclipse by clicking on the eclipse icon from the extracted folder.
  • 8. Getting started with Android • When you click on the Eclipse icon, this screen will appear
  • 15. Getting started with Android •  o o Android Virtual Device (AVD): Defining: Window-> Android Virtual Device Manager On Android Virtual Device Tab click on “New” – Then create AVD as shown
  • 16. Keywords • Plug-in – A hardware or software module that adds a specific feature or service to a larger system. The idea is that the new component simply plugs in to the existing system. For example, there are number of plug-ins for the Netscape Navigator browser that enable it to display different types of audio or video messages. • IDE - A programming environment integrated into a software application that provides a GUI builder, a text or code editor, a compiler and/or interpreter and a debugger. For example, Visual Studio, Eclipse are all examples of IDEs.