SlideShare a Scribd company logo
1 of 24
Download to read offline
Next Step, Android Studio! 
Federal University of Ceará 
Federal 
University of Ceará 
ÉDIPO DA SILVA SOUZA 
www.ediposouza.com
• Introduction 
• New Concepts 
• Advantages 
• Gradle 
• The Environment 
• Features 
• Productivity 
Federal University of Ceará 
SCHObEjeDtivUoLE
Federal University of Ceará 
Objetivo 
INTRODUCTION 
• 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
NEW CONCEPTS 
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)
Federal University of Ceará 
Objetivo 
ADVANTAGES 
• 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
Federal University of Ceará 
Objetivo 
What??? 
GRADLE 
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.
Federal University of Ceará 
Objetivo 
GRADLE 
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. 
After hate it, you will love it!
THE ENVIRONMENT 
Federal University of Ceará
THE ENVIRONMENT 
Federal University of Ceará
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
Federal University of Ceará 
Objetivo 
FEATURES 
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. 
Source: http://developer.android.com/sdk/installing/studio-androidview.html
Federal University of Ceará 
Objetivo 
FEATURES 
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. 
Source: http://tools.android.com/recent/androidstudiobetareleased
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 
More info: http://tools.android.com/tech-docs/tools-attributes Source: http://tools.android.com/tips/layout-designtime-attributes
Federal University of Ceará 
Objetivo 
FEATURES 
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 
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
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
Federal University of Ceará 
Objetivo 
FEATURES 
Library Dependency Editor 
• More easy than just type the package. 
• Easy search for the library package. 
• Google libraries. 
• Most commonly requested libraries. 
Source: http://tools.android.com/recent/androidstudio045released
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
Federal University of Ceará 
Objetivo 
FEATURES 
• 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
Federal University of Ceará 
Objetivo 
PRODUCTIVITY 
List keyboard shortcuts for common operations. 
Source: http://developer.android.com/sdk/installing/studio-tips.html
Federal University of Ceará 
PRODOUbjeCtivToIVITY 
Source: http://developer.android.com/sdk/installing/studio-tips.html
Federal University of Ceará 
Objetivo 
PRODUCTIVITY 
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
Federal University of Ceará 
Objetivo 
PRODUCTIVITY 
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
Federal University of Ceará 
Objetivo 
PRODUCTIVITY 
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/
Federal University of Ceará 
Thank you!!! 
Contact: 
edipo2s@gmail.com 
More info: 
http://ediposouza.com/iniciando-com-o-android-studio?lang=en

More Related Content

What's hot

android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
slesulvy
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
China Bigs
 

What's hot (20)

Introduction to android studio 2.0 and data binding library
Introduction to android studio 2.0 and data binding libraryIntroduction to android studio 2.0 and data binding library
Introduction to android studio 2.0 and data binding library
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
 
Utilizando Espresso e UIAutomator no Teste de Apps Android
Utilizando Espresso e UIAutomator no Teste de Apps AndroidUtilizando Espresso e UIAutomator no Teste de Apps Android
Utilizando Espresso e UIAutomator no Teste de Apps Android
 
Android development session 5 - Debug android studio
Android development   session 5 - Debug android studioAndroid development   session 5 - Debug android studio
Android development session 5 - Debug android studio
 
Android studio
Android studioAndroid studio
Android studio
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from Scratch
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
 
Automated Historical Performance Analysis with kmemtracer
Automated Historical Performance Analysis with kmemtracerAutomated Historical Performance Analysis with kmemtracer
Automated Historical Performance Analysis with kmemtracer
 
Android Development Tutorial V3
Android Development Tutorial   V3Android Development Tutorial   V3
Android Development Tutorial V3
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android coding
 
Introduction to Android Studio
Introduction to Android StudioIntroduction to Android Studio
Introduction to Android Studio
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Day1 before getting_started
Day1 before getting_startedDay1 before getting_started
Day1 before getting_started
 
Android Lab
Android LabAndroid Lab
Android Lab
 
Android studio 2.0: default project structure
Android studio 2.0: default project structureAndroid studio 2.0: default project structure
Android studio 2.0: default project structure
 
What's new in android jakarta gdg (2015-08-26)
What's new in android   jakarta gdg (2015-08-26)What's new in android   jakarta gdg (2015-08-26)
What's new in android jakarta gdg (2015-08-26)
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Android development beginners faq
Android development  beginners faqAndroid development  beginners faq
Android development beginners faq
 

Similar to Next Step, Android Studio!

Build your android app with gradle
Build your android app with gradleBuild your android app with gradle
Build your android app with gradle
Swain Loda
 

Similar to Next Step, Android Studio! (20)

Android Studio 3 - Dependency-Aware Build Variants and Product Flavors
Android Studio 3 - Dependency-Aware Build Variants and Product FlavorsAndroid Studio 3 - Dependency-Aware Build Variants and Product Flavors
Android Studio 3 - Dependency-Aware Build Variants and Product Flavors
 
Head first android apps dev tools
Head first android apps dev toolsHead first android apps dev tools
Head first android apps dev tools
 
Introduction to Android- A session by Sagar Das
Introduction to Android-  A session by Sagar DasIntroduction to Android-  A session by Sagar Das
Introduction to Android- A session by Sagar Das
 
Gradle,the new build system for android
Gradle,the new build system for androidGradle,the new build system for android
Gradle,the new build system for android
 
Build your android app with gradle
Build your android app with gradleBuild your android app with gradle
Build your android app with gradle
 
Android Development Primer - GDG Los Angeles
Android Development Primer - GDG Los AngelesAndroid Development Primer - GDG Los Angeles
Android Development Primer - GDG Los Angeles
 
Exploring the power of Gradle in android studio - Basics & Beyond
Exploring the power of Gradle in android studio - Basics & BeyondExploring the power of Gradle in android studio - Basics & Beyond
Exploring the power of Gradle in android studio - Basics & Beyond
 
Angular mobile angular_u
Angular mobile angular_uAngular mobile angular_u
Angular mobile angular_u
 
Apache Cordova
Apache CordovaApache Cordova
Apache Cordova
 
Dojo javascript toolkit
Dojo javascript toolkit Dojo javascript toolkit
Dojo javascript toolkit
 
(WPF + WinForms) * .NET Core = Modern Desktop
(WPF + WinForms) * .NET Core = Modern Desktop(WPF + WinForms) * .NET Core = Modern Desktop
(WPF + WinForms) * .NET Core = Modern Desktop
 
Apache Cordova 4.x
Apache Cordova 4.xApache Cordova 4.x
Apache Cordova 4.x
 
Cordova: APIs and instruments
Cordova: APIs and instrumentsCordova: APIs and instruments
Cordova: APIs and instruments
 
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android Application
 
Android development orientation for starters v4 seminar
Android development orientation for starters v4   seminarAndroid development orientation for starters v4   seminar
Android development orientation for starters v4 seminar
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android app development
Android app developmentAndroid app development
Android app development
 
[2015/2016] Apache Cordova
[2015/2016] Apache Cordova[2015/2016] Apache Cordova
[2015/2016] Apache Cordova
 
Writing Android Libraries
Writing Android LibrariesWriting Android Libraries
Writing Android Libraries
 

More from Édipo Souza

Framework MVC - vRaptor
Framework MVC - vRaptorFramework MVC - vRaptor
Framework MVC - vRaptor
Édipo Souza
 
XP - eXtreme Programming
XP - eXtreme ProgrammingXP - eXtreme Programming
XP - eXtreme Programming
Édipo Souza
 

More from Édipo Souza (11)

Estudo comparativo das linguagens kotlin e java no desenvolvimento de aplicac...
Estudo comparativo das linguagens kotlin e java no desenvolvimento de aplicac...Estudo comparativo das linguagens kotlin e java no desenvolvimento de aplicac...
Estudo comparativo das linguagens kotlin e java no desenvolvimento de aplicac...
 
Android studio build variants
Android studio build variantsAndroid studio build variants
Android studio build variants
 
Introdução a Plataforma Android
Introdução a Plataforma AndroidIntrodução a Plataforma Android
Introdução a Plataforma Android
 
Apresentação de minha Monografia do curso de Sistema e Mídias Digitais
Apresentação de minha Monografia do curso de Sistema e Mídias DigitaisApresentação de minha Monografia do curso de Sistema e Mídias Digitais
Apresentação de minha Monografia do curso de Sistema e Mídias Digitais
 
UMA ANÁLISE COMPARATIVA DE FERRAMENTAS DE DESENVOLVIMENTO MULTIPLATAFORMA PAR...
UMA ANÁLISE COMPARATIVA DE FERRAMENTAS DE DESENVOLVIMENTO MULTIPLATAFORMA PAR...UMA ANÁLISE COMPARATIVA DE FERRAMENTAS DE DESENVOLVIMENTO MULTIPLATAFORMA PAR...
UMA ANÁLISE COMPARATIVA DE FERRAMENTAS DE DESENVOLVIMENTO MULTIPLATAFORMA PAR...
 
Android - Frameworks de Testes
Android - Frameworks de TestesAndroid - Frameworks de Testes
Android - Frameworks de Testes
 
Android - Frameworks para Gráficos
Android - Frameworks para GráficosAndroid - Frameworks para Gráficos
Android - Frameworks para Gráficos
 
Logging Patterns & Anti-Patterns
Logging Patterns & Anti-PatternsLogging Patterns & Anti-Patterns
Logging Patterns & Anti-Patterns
 
Android - Frameworks de Persistência
Android - Frameworks de PersistênciaAndroid - Frameworks de Persistência
Android - Frameworks de Persistência
 
Framework MVC - vRaptor
Framework MVC - vRaptorFramework MVC - vRaptor
Framework MVC - vRaptor
 
XP - eXtreme Programming
XP - eXtreme ProgrammingXP - eXtreme Programming
XP - eXtreme Programming
 

Recently uploaded

Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
raffaeleoman
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
amilabibi1
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
Kayode Fayemi
 

Recently uploaded (18)

Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of Drupal
 
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
 

Next Step, Android Studio!

  • 1. Next Step, Android Studio! Federal University of Ceará Federal University of Ceará ÉDIPO DA SILVA SOUZA www.ediposouza.com
  • 2. • Introduction • New Concepts • Advantages • Gradle • The Environment • Features • Productivity Federal University of Ceará SCHObEjeDtivUoLE
  • 3. Federal University of Ceará Objetivo INTRODUCTION • 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
  • 4. NEW CONCEPTS 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)
  • 5. Federal University of Ceará Objetivo ADVANTAGES • 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
  • 6. Federal University of Ceará Objetivo What??? GRADLE 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.
  • 7. Federal University of Ceará Objetivo GRADLE 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. After hate it, you will love it!
  • 8. THE ENVIRONMENT Federal University of Ceará
  • 9. THE ENVIRONMENT Federal University of Ceará
  • 10. 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
  • 11. Federal University of Ceará Objetivo FEATURES 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. Source: http://developer.android.com/sdk/installing/studio-androidview.html
  • 12. Federal University of Ceará Objetivo FEATURES 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. Source: http://tools.android.com/recent/androidstudiobetareleased
  • 13. 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 More info: http://tools.android.com/tech-docs/tools-attributes Source: http://tools.android.com/tips/layout-designtime-attributes
  • 14. Federal University of Ceará Objetivo FEATURES 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 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
  • 15. 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
  • 16. Federal University of Ceará Objetivo FEATURES Library Dependency Editor • More easy than just type the package. • Easy search for the library package. • Google libraries. • Most commonly requested libraries. Source: http://tools.android.com/recent/androidstudio045released
  • 17. 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
  • 18. Federal University of Ceará Objetivo FEATURES • 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
  • 19. Federal University of Ceará Objetivo PRODUCTIVITY List keyboard shortcuts for common operations. Source: http://developer.android.com/sdk/installing/studio-tips.html
  • 20. Federal University of Ceará PRODOUbjeCtivToIVITY Source: http://developer.android.com/sdk/installing/studio-tips.html
  • 21. Federal University of Ceará Objetivo PRODUCTIVITY 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
  • 22. Federal University of Ceará Objetivo PRODUCTIVITY 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
  • 23. Federal University of Ceará Objetivo PRODUCTIVITY 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/
  • 24. Federal University of Ceará Thank you!!! Contact: edipo2s@gmail.com More info: http://ediposouza.com/iniciando-com-o-android-studio?lang=en