next step, android studio!
DESCRIPTION
Presentation about new concepts and features that came with Android Studio. Advantages over eclipse. Explanation about Gradle. Productivity with Android Studio. Shotcuts migration from Eclipse.TRANSCRIPT
![Page 1: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/1.jpg)
Federal University of Ceará
FederalUniversity of Ceará
ÉDIPO DA SILVA SOUZA
Next Step, Android Studio!
www.ediposouza.com
![Page 2: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/2.jpg)
Federal University of Ceará
• Introduction
• New Concepts
• Advantages
• Gradle
• The Environment
• Features
• Productivity
ObjetivoSCHEDULE
![Page 3: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/3.jpg)
Federal University of Ceará
Objetivo
• Google project
• Alpha version 0.1 was announced in Google IO 2013 (May/15)
• Beta version 0.8 was announced in Google IO 2014 (June/25)
• Actual(Nov/18) beta version is 0.8.14
• Actual(Nov/18) canary version is 0.9.3
• Based on JetBrain' IntelliJ IDEA
• Gradle based build system and dependency manager
• Free available for Windows, Mac OS X and Linux
• Support for Java 7 language features
INTRODUCTION
![Page 4: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/4.jpg)
Federal University of Ceará
Objetivo
• One Project open at time
• New project structure
• Build-in dependency manager
• Dependency (Eclipse jar files in libs)
• Modules (Eclipse project library)
NEW CONCEPTS
![Page 5: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/5.jpg)
Federal University of Ceará
Objetivo
• IntelliJ IDEA is faster and lighter
• Very stable and does not leak memory forcing constant reboots
• No need to constantly clean my projects
• Layout editor tools are vastly improved
• Live layout let you see the UI preview as you type layout XML
• UI previews elements and correspondent layout XML tag are synchronized
• Many news Lint checks
• Better code complete action
• Smart Code Completion
• Integrated console terminal
• Integrated Version Control more efficient
• Can use external merging tool
ADVANTAGES
![Page 6: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/6.jpg)
Federal University of Ceará
Objetivo
What???
Gradle is a project automation tool used for Android Studio as build system
and dependency manager.
Cool, but what is a dependency???
Understand how what you know as a library, whether a jar file or a project
marked as ‘is library’. If you project need external sources, it’s a dependency.
Without it...
• We search on google for a jar file, download and put it on libs folder.
• Push the jar files to our remote repository, making it grow up.
• Have some painkiller when us taken a project that use a old jar version (what
we don’t know) and when we put the latest jar version, it broken.
GRADLE
![Page 7: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/7.jpg)
Federal University of Ceará
Objetivo
With it!!!
• We just need to indicate the package of the dependence we want.
• We can specify the dependency version or ‘+’ for latest version.
• Gradle search the dependency, download and configure your project to use it.
• With scripted build process, we can customize to add new features.
• Build variants make easy to configure an Internal, Demo, Free, Paid build.
• Export APKs with the version number in the filename
• Run a script when your APK is exported like automatically upload the APK to
TestFlight for internal testing.
GRADLE
After hate it, you will love it!
![Page 8: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/8.jpg)
Federal University of Ceará
THE ENVIRONMENT
![Page 9: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/9.jpg)
Federal University of Ceará
THE ENVIRONMENT
![Page 10: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/10.jpg)
Federal University of Ceará
Objetivo
Better Project Wizard
• Steps better distributed.
• Helper for choose the
Minimum/Maximum SDK level.
• Many Templates.
• Better Template configuration.
FEATURES
Source: http://tools.android.com/recent/androidstudio061released
![Page 11: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/11.jpg)
Federal University of Ceará
Objetivo
Android Project View
• Groups the build files for all modules at the top level of the project hierarchy.
• Shows the most important source directories at the top level of the module hierarchy.
• Groups all the manifest files for each module.
• Shows resource files from all Gradle source sets.
• Groups resource files for different locales, orientations, and screen types in a single group per resource type.
FEATURES
Source: http://developer.android.com/sdk/installing/studio-androidview.html
![Page 12: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/12.jpg)
Federal University of Ceará
Objetivo
New Layout Editor
• You can edit the XML layout and see the preview at same time.
• Synchronized XML Tag and layout selection.
• Resource inlining like strings and dimens.
• Multi layout and real time preview based in many device configuration (Language, RTL, Android version, Screen Size, SDK version).
• Save screenshot from Layout editor preview.
• Support for xliff strings in Layout Rendering.
FEATURES
Source: http://tools.android.com/recent/androidstudiobetareleased
![Page 13: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/13.jpg)
Federal University of Ceará
Objetivo
Designtime Layout Attributes
You can edit the XML layout and see the preview at same time.
• text
• visibility
• listitem
• listheader
• listfooter
• menu
• actionBarNavMode
• fastScrollAlwaysVisible
FEATURES
Source: http://tools.android.com/tips/layout-designtime-attributesMore info: http://tools.android.com/tech-docs/tools-attributes
![Page 14: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/14.jpg)
Federal University of Ceará
Objetivo
Enhanced Code Editor
• Instant Completion
• Context-aware Completion
• Smart code completion search
• Multi-language Refactorings
• Drawable preview in code editor
• Color preview in code editor
• Code visualization simplified
• Resource inline
FEATURES
More info: ● http://www.jetbrains.com/idea/features/refactoring.html● http://www.jetbrains.com/idea/features/code_completion.html● http://jetbrains.dzone.com/articles/top-20-code-completions-in-intellij-idea
Source: http://tools.android.com/recent/androidstudio044released
![Page 15: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/15.jpg)
Federal University of Ceará
Objetivo
New AVD Manager
• Wizard for AVD creation.
• More integrated to IDE.
• Easy to create a new AVD
base on existence hardware.
• Differents device category.
FEATURES
Source: http://tools.android.com/recent/androidstudio0812released
![Page 16: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/16.jpg)
Federal University of Ceará
Objetivo
Library Dependency Editor
• More easy than just type the package.
• Easy search for the library package.
• Google libraries.
• Most commonly requested libraries.
FEATURES
Source: http://tools.android.com/recent/androidstudio045released
![Page 17: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/17.jpg)
Federal University of Ceará
Objetivo
Translate Editor
• Multi language at same time.
• Check untranslated strings.
• Quick Inline edit.
• Open it with right click on a file
named "strings.xml".
FEATURES
Source: http://tools.android.com/recent/androidstudio087released
![Page 18: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/18.jpg)
Federal University of Ceará
Objetivo
• Integrated terminal console
• Integrated Version control
• Build variants
• Live updated with small patch
• Screen record feature in DDMS
• Drawable preview in code editor (Shapes, Colors, Menus).
• Bitmap rendering in the debugger
• New memory monitor
• Code Checker
• Copyright manager
• Auto import
FEATURES
![Page 19: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/19.jpg)
Federal University of Ceará
Objetivo
List keyboard shortcuts for common operations.
PRODUCTIVITY
Source: http://developer.android.com/sdk/installing/studio-tips.html
![Page 20: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/20.jpg)
Federal University of Ceará
ObjetivoPRODUCTIVITY
Source: http://developer.android.com/sdk/installing/studio-tips.html
![Page 21: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/21.jpg)
Federal University of Ceará
Objetivo
Mac OSX Windows/Linux Eclipse (Windows) equivalent Description
● Cmd+ ← Ctrl+Y Ctrl+D Delete line
● Cmd+Shift+ ← Ctrl+shift+ ← - Last edit location
● Cmd+Option+V Ctrl+Alt+V Alt+Shift+L Extract variable
● Cmd+Option+F Ctrl+Alt+F - Extract Field
● Cmd+Option+C Ctrl+Alt+C - Extract constant
● Cmd+Option+P Ctrl+Alt+P - Extract param
● Cmd+Option+M Ctrl+Alt+M Alt+Shift+M Extract Method
● Cmd+Option+T Ctrl+Alt+T Alt+Shift+Z Surround with
● Cmd+Option+/ Ctrl+Shift+/ Ctrl+Shift+/ Block Comment
● Cmd+/ Ctrl+/ Ctrl+Shift+C Inline Comment
● Cmd+P Ctrl+P Ctrl+Shift+Space Show method params
● Cmd+1 Alt+1 Alt+Shift+Q, P Show/hide Project view
● Cmd+ + Ctrl+ + - Expand block
● Cmd+ - Ctrl+ - - Contract block
● Cmd+J Ctrl+J - Live template
PRODUCTIVITY
![Page 22: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/22.jpg)
Federal University of Ceará
Objetivo
Mac OSX Windows/Linux Eclipse (Windows) equivalent Description
● Cmd+K Ctrl+K Ctrl+# Commit vcs changes
● Cmd+T Ctrl+T - Update vcs changes
● Ctrl+V Ctrl+ ` - Version Control popup
● Ctrl+Enter Alt+Insert Ctrl+Shift+S Generate popup
● Ctrl+Tab Ctrl+Tab - Next tab
● Ctrl+Shift+Tab Ctrl+Shift+Tab - Previous tab
● Ctrl+R Shift+F10 Ctrl+F11 Run app
● Ctrl+D Shift+F9 F11 Debug app
● Ctrl+O Ctrl+O - Override method
● Ctrl+Up Alt+Up Ctrl+Shift+Up Navigate next method
● Ctrl+Down Alt+Down Ctrl+Shift+Down Navigate previous method
● Crtl+Option+O Ctrl+Alt+O Ctrl+Shift+O Organize imports
● Option+Space Ctrl+Shift+I - Quick definition
● Option+Enter Alt+Enter Ctrl+1 Quick Fix
● Shift+F6 Shift+F6 Alt+Shift+R Rename refactoring
PRODUCTIVITY
![Page 23: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/23.jpg)
Federal University of Ceará
Objetivo
Android Studio have many many keyboard shortcuts, to learn some of the most useful, check the Philippe Breault work on Google+ and his blog.
• https://plus.google.com/u/0/+PhilippeBreault/posts• https://github.com/pavlospt/Android-Studio-Tips-by-Philippe-Breault/wiki• http://www.developerphil.com/android-studio-tips-of-the-day-roundup-1/• http://www.developerphil.com/android-studio-tips-of-the-day-roundup-2/
PRODUCTIVITY
![Page 24: Next Step, Android Studio!](https://reader033.vdocuments.mx/reader033/viewer/2022042700/55935c571a28ab63648b45b0/html5/thumbnails/24.jpg)
Federal University of Ceará
Thank you!!!
Contact:[email protected]
More info:http://ediposouza.com/iniciando-com-o-android-studio?lang=en