COM594: Mobile Technology
Practical – Week 1
Android and Android Studio
Android
What is Android?
Android is an open source and Linux-based Operating System formobile devices such as smartphones and tablet computers.
Android was developed by the Open Handset Alliance, led by Google,and other companies.
Who I Am
Why Android ?
Android is a powerful operating system and supports great features.
Why Android
Android Applications
Android applications are usually developed in the Java language using theAndroid Software Development Kit (SDK).
Categories
History of Android
The code names of android ranges from A to L currently, such as Aestro,Blender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, IceCream Sandwitch, Jelly Bean, KitKat and Lollipop.
Jistory
System Requirements
Can start your Android application development on either of the followingoperating 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 yourAndroid application programming.
Java JDK5 or later version
Java Runtime Environment (JRE) 6
Android Studio
Android Studio
Introducing AndroidStudio
Installing the Java Development Kit (JDK) on Windows
Introducing AndroidStudio
Downloading the JDKon Windows
Introducing AndroidStudio
Executing the JDKWizard on Windows
C:\Java
Introducing AndroidStudio
Introducing AndroidStudio
Configuring EnvironmentalVariables on Windows
Introducing AndroidStudio
Configuring Environmental Variables on Windows
Introducing AndroidStudio
Configuring System variable on Windows
Introducing AndroidStudio
Edit the PATH environmental variable on Windows
Place your cursor at the end of the Variable Value field and type thefollowing:
;%JAVA_HOME%\bin
In the command-line window, issue the following command and pressEnter:
java –version
Introducing AndroidStudio
Introducing AndroidStudio
Once the download is complete, execute the file you just downloaded.
Introducing AndroidStudio
Select locations for Android Studio and the SDK
Introducing AndroidStudio
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 NameMainActivity
Layout Nameactivity_main
TitleMainActivity
Menu Resource Namemenu_main
Creating Your First Project:HelloWorld
Using Android Virtual Device (AVD) Manager
The Android Virtual Device Manager allows you to create AndroidVirtual Devices (AVDs), which you can then run to emulate a deviceon 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