SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Was ist angesagt?

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
Deepa Rani
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
Tran Le Hoan
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themes
Deepa Rani
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
China Bigs
 

Was ist angesagt? (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
 

Ähnlich wie Android App development I

03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
Arief Gunawan
 
Android installation
Android installationAndroid installation
Android installation
Durai S
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
Joe Jacob
 
AndEngine
AndEngineAndEngine
AndEngine
TheBeege
 

Ähnlich wie Android App development I (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
 

KĂźrzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

KĂźrzlich hochgeladen (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 

Android App development I

  • 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.