project a day 2 introduction to android studio
TRANSCRIPT
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
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
4 / 11
Source: Android for .NET Developers: 1 Getting Started @Pluralsight Authored by Jim Wilson
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
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
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
DEMO
• Create Hello World App
• Create Testing device
• Run the app
8 / 11
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
DEMO
• Let’s introduce some bugs• Do some logging• Play around
11 / 11
OOP concepts (JAVA)
• Class• Attribute• Object• Static Class• Static method• Static final • Override method• Nested class• Anonymous class
12 / 11