Mobile Application Development
Mobile Application Development
Application Development
Android Development Environment
What You Need?
• Java Development Kit (JDK)
• Android Studio (IDE + SDK)
Java Development Kit (JDK)
• Before you can setup Android development environment, you
need to install Java Development Kit on your machine.
• Java Development Kit (JDK)
– Download:
http://www.oracle.com/technetwork/java/javase/downloads/
– Setting up PATH and CLASSPATH
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
Android Studio
• Android Studio is the official IDE for Android application
development, based on IntelliJ IDEA.
• Android SDK comes with Android Studio, so you don’t need to
install it separately.
• Android Studio
– Download:
http://developer.android.com/sdk/index.html
Download Android Studio
Installation
• Double click the downloaded file (Over 800 MBs) and follow instructions.
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
Installation
STARTING &
RUNNING NEW ANDROID PROJECT
New Project
New Project
New Project
New Project
New Project
New Project
Android Virtual Device
Android Virtual Device
Android Virtual Device
Android Virtual Device
Android Virtual Device
Android Virtual Device
Android Virtual Device
Running The Application
Running The Application
Running The Application
Running The Application
Caution
• Do not move any of the files or directories <sdk> directory. If you move
the sdk directory, Programs like Android Studio will not be able to locate
the SDK.
Tips
• You can start a virtual device even before you
run an application.
• You can keep emulator running, so that you don’t have to wait
for it to load every time you want to run your app.
Using Hardware Devices
• Before we can run the application on a physical device, we
need to make a configuration change on the phone and install
some drivers for the phone on our development machine.
Using Hardware Devices
Enable USB debugging on your device.
• On most devices running Android 3.2 or older, you can find
the option under Settings > Applications > Development.
• On Android 4.0 and newer, it's in Settings > Developer
options.
• On Android 4.2 and newer, Developer options is hidden by
default. To make it available, go to Settings > About phone
and tap Build number seven times. Return to the previous
screen to find Developer options.
Using Hardware Devices
Set up your system to detect your device.
• If you're developing on Windows, you need to install a USB
driver for adb (Android Debug Bridge).
• For an installation guide and links to OEM drivers, see the
OEM USB Drivers document:
– http://developer.android.com/tools/extras/oem‐usb.html
Running on Hardware Device
WRAP‐UP
Summary
• Installation • Android Virtual Device
• Use SDK Manager • Running Android Application
• Starting New Project • Using Hardware Device
Next Lecture
• Exercise: Setup “Android Development Environment” before
next class.
• For Practice & Evaluation: Bring your own Laptop
• Quiz 01: Expect a quiz before next lecture.