project a day 2 introduction to android studio

13
Introduction to Android Studio

Upload: goran-djonovic

Post on 12-May-2015

391 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Project a day 2   introduction to android studio

Introduction to Android Studio

Page 2: Project a day 2   introduction to android studio

What is Android Studio

• IDE for developing android applications• Announced 16th May 2013 During Google I/O conference• Similar to eclipse with ADT Plug-in• Android focused IDE based on IntelliJ IDEA

2 / 11

Page 3: Project a day 2   introduction to android studio

Android Studio Features

• Powerful code editing (I’ll show you in a moment)• Rich layout Editor• Gradle-based build support • Lint tool (for code analysis)• Maven support• Template based wizards

3 / 11

Page 4: Project a day 2   introduction to android studio

4 / 11

Source: Android for .NET Developers: 1 Getting Started @Pluralsight Authored by Jim Wilson

Page 5: Project a day 2   introduction to android studio

Android tools

• Dalvik – Android process virtual machine (like JVM runs .dex files)• DDMS – Dalvik Debug Monitor Server• AVD – Android Virtual Device• ADB Daemon – Android Debug Bridge Daemon• ADB Server – Android Debug Bridge Server• Logcat – system for logging messages

• Silent, Assert, Error, Warning, Info, Debug, Verbose

5 / 11

Page 6: Project a day 2   introduction to android studio

Android SDK manager

• Manages Installs, updates, and removes features of your development environment.• Tools• SDKs for each API Level• Extras

You are responsible for running SDK manager

6 / 11

Page 7: Project a day 2   introduction to android studio

What is Android application

• Loosely coupled set of services• Can use other application (without direct link)• Consists of:

• Activities (screens)• Services (running in a background)• Broadcast receivers (reacting on events)• Content providers (API s for Data)

7 / 11

Page 8: Project a day 2   introduction to android studio

DEMO

• Create Hello World App

• Create Testing device

• Run the app

8 / 11

Page 9: Project a day 2   introduction to android studio

Android Studio Project Structure

• Main Project• .idea• Project Module

• Build• Libs• SRC

• Java• res

• Gradle • Make it easy to create several variants of an application, either for multi-apk distribution or for different flavors of an

applicationlti-apk distribution or for different flavors of an application

http://tools.android.com/tech-docs/new-build-system

9 / 11

Page 10: Project a day 2   introduction to android studio

Build process

10 / 11

Source: Pluralsight

Page 11: Project a day 2   introduction to android studio

DEMO

• Let’s introduce some bugs• Do some logging• Play around

11 / 11

Page 12: Project a day 2   introduction to android studio

OOP concepts (JAVA)

• Class• Attribute• Object• Static Class• Static method• Static final • Override method• Nested class• Anonymous class

12 / 11

Page 13: Project a day 2   introduction to android studio

13/11

ANY QUESTIONS?