7
Introduction to Android 1 Introduction to Android

Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Embed Size (px)

Citation preview

Page 1: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 1

Introduction to Android

Page 2: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 2

What is Android?

• Android is a mobile operating system.– A modified version of Linux

• Google bought Android from another company in 2005

• Android is open source• Android comes in several versions– Some versions are for Smart Phones– Some versions are for Tablet computers

Page 3: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 3

Architecture of Android

Page 4: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 4

Android Java API vs. Ordinary Java APIsome examples

Java API present in Android• java.beans• java.io• java.lang

– Runnable, Thread, etc.

• java.net– Socket, etc.

• java.util– List, Set, Map, etc.

• java.util.concurrent– Executors, ExecutorService

Java API NOT present in Android

• java.applet• java.awt

– GUI event listeners

• javax.swing– GUI components

Page 5: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 5

The necessary tools

• Java JDK– Android applications are written using the Java

programming language• Android SDK– Libraries, emulators, debugger, etc. specific to Android.

• Android Studio– An IDE (Integrated Development Enviroment)

• Genymotion– Emulators, to run Android apps on a normal computer

Page 6: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 6

Android application development with Android Studio

• How to get started1. Create an Android project2. Choose a build target• I usually chose Android 4.x

3. Add a few UI components to main.xml4. Override the onCreate() method in your Activity5. Start the emulator • Takes some time …

6. Run the application in the emulator

Page 7: Introduction to Android 1. What is Android? Android is a mobile operating system. – A modified version of Linux Google bought Android from another company

Introduction to Android 7

What’s in a Android application?Some Eclipse folders

• java– .java source files.– This is where you program your Activities

• res.drawable– Pictures, etc. In different resolutions (high, low, medium)

• res.layout– XML files describing user interfaces

• res.values.strings.xml– XML file with constant strings, like application name, etc.

• AndroidManifest.xml– XML file describing the Android application