Your SlideShare is downloading. ×
Android Studio
Paresh Mayani
Android Developer
@pareshmayani
www.TechnoTalkative.com
Hello World
16th May 2013
During Google I/O
2013
@pareshmayani
@pareshmayani
What is Android Studio?
@pareshmayani
@pareshmayani
Android focused IDE
@pareshmayani
Android focused IDE
(designed specifically for Android
development)
@pareshmayani
Similar to Eclipse with the ADT Plug-in
@pareshmayani
Contains All the Android SDK Tools to
design, test, debug, and profile your app
@pareshmayani
New Android development
environment
http://www.jetbrains.com/idea/
New Android development
environment based on
http://www.jetbrains.com/idea/
Is based on
New Android development
environment based on IntelliJ IDEA
http://www.jetbrains.com/idea/
Is based on
Why a New IDE?
@pareshmayani
Eclipse for Android….huh !!
@pareshmayani
What is the difference between
IntelliJ Idea and Android Studio?
@pareshmayani
Nothing
If you use IntelliJ…
– Keep using it.
– IntelliJ 13 will have the same stuff
– EAP of IntellJ Idea 13 includes all...
IntelliJ Idea and Android Studio? FAQ
http://blog.jetbrains.com/idea/2013/05/intellij-idea-and-
android-studio-faq/
@pares...
Let’s Download
@pareshmayani
Let’s Download
http://developer.android.com/sdk/installing/studio.html
@pareshmayani
Features of Android Studio
@pareshmayani
• Powerful code editing (smart editing, code
refactoring)
@pareshmayani
• Powerful code editing (smart editing, code
refactoring)
• Rich layout Editor
@pareshmayani
• Powerful code editing (smart editing, code
refactoring)
• Rich layout Editor
• Gradle-based build support
@pareshmayani
• Powerful code editing (smart editing, code
refactoring)
• Rich layout Editor
• Gradle-based build support
• Maven suppor...
• Powerful code editing (smart editing, code
refactoring)
• Rich layout Editor
• Gradle-based build support
• Maven suppor...
• Powerful code editing (smart editing, code
refactoring)
• Rich layout Editor
• Gradle-based build support
• Maven suppor...
• Powerful code editing (smart editing, code
refactoring)
• Rich layout Editor
• Gradle-based build support
• Maven suppor...
Gradle
@pareshmayani
Gradle - The New Build System
@pareshmayani
• Gradle is an advanced build management
system based on Groovy
@pareshmayani
• Gradle is an advanced build management
system based on Groovy
• Its an Open source build system
@pareshmayani
• Gradle is an advanced build management
system based on Groovy
• Its an Open source build system
• Combines the power of ...
Features & Benefits of Gradle
@pareshmayani
• Dependency Management (Flexible
approach to dependency management that can
reuse existing maven repositories or referenc...
• A single build system (Gradle is the
authoritative build across the IDE and the
command-line.)
@pareshmayani
• Product Flavors (Free & Paid version)
• Build Variants (Play store OR Amazon OR Any
other store)
• Build Type (Debug, QA...
• Binary Bundles for Libaries (.aar) (Gradle
supports the new .aar binary bundle format for the
library projects)
@pareshm...
Dependency Management
@pareshmayani
Ant
Dependency
Management
Compiled
with
ANDROID APK
All source & JARs are
Combined into APK
Source code files &
Libs are s...
Maven Builds
Dependency
Management
Compiled
with
ANDROID APK
All source & JARs are
Combined into APK
Maven
Central
Resposi...
Gradle Builds
Dependency
Management
Compiled
with
ANDROID APK
All source & JARs are Combined into APK
Maven
Central
Respos...
Migrating from Eclipse
http://developer.android.com/sdk/installing/migrate.html
@pareshmayani
Awesome stuffs Inside
@pareshmayani
Dracula “Darcula” Theme
File > Settings > IDE Settings > Appearance >
Theme: Darcula
@pareshmayani
Preview All Screens
Device framed screen capture
New things:
1. Frame Capture
2. Drop Shadow
3. Screen Glare
@pareshmayani
Color Preview
Live Preview of all
the color values
@pareshmayani
Color Preview – Activity class
@pareshmayani
Hard coded Strings
1. Settings > Editor > Code Folding > Android
String References
OR
2. Select String and right click on ...
Alert - Potential Null Pointer Exception
Alert: There is potential Null pointer exception
@pareshmayani
Oops – Rendering Problems
Shows you Rendering Problem while designing
layout
@pareshmayani
Create Landscape variation
Option to create variant layouts
in single click
@pareshmayani
Keyboard Shortcuts
@pareshmayani
Go to file
CTRL + SHIFT + N
@pareshmayani
Go to class
CTRL + N
@pareshmayani
Renaming
SHIFT + F6
@pareshmayani
Get documentation
To quickly see the documentation for the class
or method used at the editor's caret, press
Ctrl+Q
@pares...
Which IDE to use?
@pareshmayani
All the Keyboard Shortcuts
• Help => Default Keymap Reference
(To view all the keyboard shotcuts)
@pareshmayani
No
It’s EARLY ACCESS PREVIEW
Should wait until Beta
Should I use Android Studio?
@pareshmayani
Links
• Android Studio: An IDE built for Android => http://goo.gl/iHRvYF
• Google I/O 2013 - What's New in Android Develop...
<Stay in Touch>
Paresh Mayani
Manager, GDG Ahmedabad
Android Developer
pareshmayani@gmail.com
@pareshmayani
www.TechnoTalk...
Upcoming SlideShare
Loading in...5
×

Android studio

3,027

Published on

Introduction to Android studio and new build system (Gradle). This was presented at GDG DevFest Kathmandu (Nepal).

For detailed article on it: http://www.technotalkative.com/introduction-android-studio/

Published in: Technology
0 Comments
17 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,027
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
17
Embeds 0
No embeds

No notes for slide

Transcript of "Android studio"

  1. 1. Android Studio
  2. 2. Paresh Mayani Android Developer @pareshmayani www.TechnoTalkative.com
  3. 3. Hello World 16th May 2013 During Google I/O 2013 @pareshmayani
  4. 4. @pareshmayani
  5. 5. What is Android Studio? @pareshmayani
  6. 6. @pareshmayani
  7. 7. Android focused IDE @pareshmayani
  8. 8. Android focused IDE (designed specifically for Android development) @pareshmayani
  9. 9. Similar to Eclipse with the ADT Plug-in @pareshmayani
  10. 10. Contains All the Android SDK Tools to design, test, debug, and profile your app @pareshmayani
  11. 11. New Android development environment http://www.jetbrains.com/idea/
  12. 12. New Android development environment based on http://www.jetbrains.com/idea/ Is based on
  13. 13. New Android development environment based on IntelliJ IDEA http://www.jetbrains.com/idea/ Is based on
  14. 14. Why a New IDE? @pareshmayani
  15. 15. Eclipse for Android….huh !! @pareshmayani
  16. 16. What is the difference between IntelliJ Idea and Android Studio? @pareshmayani
  17. 17. Nothing If you use IntelliJ… – Keep using it. – IntelliJ 13 will have the same stuff – EAP of IntellJ Idea 13 includes all the new stuffs If Not… – Give Android Studio a try @pareshmayani
  18. 18. IntelliJ Idea and Android Studio? FAQ http://blog.jetbrains.com/idea/2013/05/intellij-idea-and- android-studio-faq/ @pareshmayani
  19. 19. Let’s Download @pareshmayani
  20. 20. Let’s Download http://developer.android.com/sdk/installing/studio.html @pareshmayani
  21. 21. Features of Android Studio @pareshmayani
  22. 22. • Powerful code editing (smart editing, code refactoring) @pareshmayani
  23. 23. • Powerful code editing (smart editing, code refactoring) • Rich layout Editor @pareshmayani
  24. 24. • Powerful code editing (smart editing, code refactoring) • Rich layout Editor • Gradle-based build support @pareshmayani
  25. 25. • Powerful code editing (smart editing, code refactoring) • Rich layout Editor • Gradle-based build support • Maven support @pareshmayani
  26. 26. • Powerful code editing (smart editing, code refactoring) • Rich layout Editor • Gradle-based build support • Maven support • Template based wizards @pareshmayani
  27. 27. • Powerful code editing (smart editing, code refactoring) • Rich layout Editor • Gradle-based build support • Maven support • Template based wizards • Lint tool analysis @pareshmayani
  28. 28. • Powerful code editing (smart editing, code refactoring) • Rich layout Editor • Gradle-based build support • Maven support • Template based wizards • Lint tool analysis • Easy access to Google service (e.g GCM) @pareshmayani
  29. 29. Gradle @pareshmayani
  30. 30. Gradle - The New Build System @pareshmayani
  31. 31. • Gradle is an advanced build management system based on Groovy @pareshmayani
  32. 32. • Gradle is an advanced build management system based on Groovy • Its an Open source build system @pareshmayani
  33. 33. • Gradle is an advanced build management system based on Groovy • Its an Open source build system • Combines the power of Ant and Maven @pareshmayani
  34. 34. Features & Benefits of Gradle @pareshmayani
  35. 35. • Dependency Management (Flexible approach to dependency management that can reuse existing maven repositories or reference local JARs) @pareshmayani
  36. 36. • A single build system (Gradle is the authoritative build across the IDE and the command-line.) @pareshmayani
  37. 37. • Product Flavors (Free & Paid version) • Build Variants (Play store OR Amazon OR Any other store) • Build Type (Debug, QA, Release) @pareshmayani
  38. 38. • Binary Bundles for Libaries (.aar) (Gradle supports the new .aar binary bundle format for the library projects) @pareshmayani
  39. 39. Dependency Management @pareshmayani
  40. 40. Ant Dependency Management Compiled with ANDROID APK All source & JARs are Combined into APK Source code files & Libs are stored together @pareshmayani
  41. 41. Maven Builds Dependency Management Compiled with ANDROID APK All source & JARs are Combined into APK Maven Central RespositoryRead pom.xml Get dependencies Source code files @pareshmayani
  42. 42. Gradle Builds Dependency Management Compiled with ANDROID APK All source & JARs are Combined into APK Maven Central Respository Read gradle.build Get dependencies Local files Project itself Debug QA Release Source code files @pareshmayani
  43. 43. Migrating from Eclipse http://developer.android.com/sdk/installing/migrate.html @pareshmayani
  44. 44. Awesome stuffs Inside @pareshmayani
  45. 45. Dracula “Darcula” Theme File > Settings > IDE Settings > Appearance > Theme: Darcula @pareshmayani
  46. 46. Preview All Screens
  47. 47. Device framed screen capture New things: 1. Frame Capture 2. Drop Shadow 3. Screen Glare @pareshmayani
  48. 48. Color Preview Live Preview of all the color values @pareshmayani
  49. 49. Color Preview – Activity class @pareshmayani
  50. 50. Hard coded Strings 1. Settings > Editor > Code Folding > Android String References OR 2. Select String and right click on it and then go to Folding > Collapse OR CTRL + Numpad ‘-’ @pareshmayani
  51. 51. Alert - Potential Null Pointer Exception Alert: There is potential Null pointer exception @pareshmayani
  52. 52. Oops – Rendering Problems Shows you Rendering Problem while designing layout @pareshmayani
  53. 53. Create Landscape variation Option to create variant layouts in single click @pareshmayani
  54. 54. Keyboard Shortcuts @pareshmayani
  55. 55. Go to file CTRL + SHIFT + N @pareshmayani
  56. 56. Go to class CTRL + N @pareshmayani
  57. 57. Renaming SHIFT + F6 @pareshmayani
  58. 58. Get documentation To quickly see the documentation for the class or method used at the editor's caret, press Ctrl+Q @pareshmayani
  59. 59. Which IDE to use? @pareshmayani
  60. 60. All the Keyboard Shortcuts • Help => Default Keymap Reference (To view all the keyboard shotcuts) @pareshmayani
  61. 61. No It’s EARLY ACCESS PREVIEW Should wait until Beta Should I use Android Studio? @pareshmayani
  62. 62. Links • Android Studio: An IDE built for Android => http://goo.gl/iHRvYF • Google I/O 2013 - What's New in Android Developer Tools => http://goo.gl/VRCEIb • DevBytes: Android Studio => http://goo.gl/28UB94 • https://speakerdeck.com/donnfelker/introduction-to-android-studio • Google I/O 2013 - The New Android SDK Build System => http://goo.gl/N9e2Fq @pareshmayani
  63. 63. <Stay in Touch> Paresh Mayani Manager, GDG Ahmedabad Android Developer pareshmayani@gmail.com @pareshmayani www.TechnoTalkative.com

×