Download Introducing Android Studio

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
COM594: Mobile Technology
Practical – Week 1
Android and Android Studio
Android
What is Android?
 Android is an open source and Linux-based Operating System for
mobile devices such as smartphones and tablet computers.
 Android was developed by the Open Handset Alliance, led by Google,
and other companies.
Why Android ?
 Android is a powerful operating system and supports great features.
Android Applications
 Android applications are usually developed in the Java language using the
Android Software Development Kit (SDK).
History of Android
 The code names of android ranges from A to L currently, such as Aestro,
Blender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice
Cream Sandwitch, Jelly Bean, KitKat and Lollipop.
System Requirements
 Can start your Android application development on either of the following
operating systems −
• Microsoft® Windows® 10/8/7/Vista/2003 (32 or 64-bit).
• Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
• GNOME or KDE desktop
 Following is the list of software's you will need before you start your
Android application programming.
• Java JDK5 or later version
• Java Runtime Environment (JRE) 6
• Android Studio
Android Studio
Introducing Android
Studio
 Installing the Java Development Kit (JDK) on Windows
http://www.oracle.com/technetwork/java/javase/downloads/index.
html
Introducing Android
Studio
 Downloading the JDK
on Windows
Introducing Android
Studio
 Executing the JDK
Wizard on Windows
C:\Java
Introducing Android
Studio
Introducing Android
Studio
 Configuring Environmental
Variables on Windows
Introducing Android
Studio
 Configuring Environmental Variables on Windows
Introducing Android
Studio
 Configuring System variable on Windows
Introducing Android
Studio
 Edit the PATH environmental variable on Windows
 Place your cursor at the end of the Variable Value field and type the
following:
;%JAVA_HOME%\bin
 In the command-line window, issue the following command and press
Enter:
java –version
Introducing Android
Studio
 Installing Android Studio
https://developer.android.com/studio/index.html
Introducing Android
Studio
 Once the download is complete, execute the file you just downloaded.
Introducing Android
Studio
 Select locations for Android Studio and the SDK
Introducing Android
Studio
 Completing the Android Studio setup
Creating Your First Project:
HelloWorld
 Welcome to Android Studio
 Click the Start a New Android Project option.
Creating Your First Project:
HelloWorld
 Configure your new project
firstname.ulster.ac.uk
Creating Your First Project:
HelloWorld
 Select the form factors your app will run on
Creating Your First Project:
HelloWorld
 Choose options for your new file
Activity Name: MainActivity
Layout Name: activity_main
Title: MainActivity
Menu Resource Name: menu_main
Creating Your First Project:
HelloWorld
 Using Android Virtual Device (AVD) Manager
The Android Virtual Device Manager allows you to create Android
Virtual Devices (AVDs), which you can then run to emulate a device
on your computer.
Creating Your First Project:
HelloWorld
 Select the Galaxy Nexus hardware
Creating Your First Project:
HelloWorld
 Select the x86_64 system image
Creating Your First Project:
HelloWorld
 Running HelloWorld on an AVD
 Choosing a device and launching the emulator
Creating Your First Project:
HelloWorld
 Emulator
Creating Your First Project:
HelloWorld
 Running HelloWorld on an Android Device
• Connect the mobile phone via USB cable
• Click the Android Device Monitor button
Creating Your First Project:
HelloWorld
 Running HelloWorld on an Android Device
• Now click the green Run button
Related documents