exploring android studio
TRANSCRIPT
![Page 1: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/1.jpg)
Exploring Android StudioGet relaxed, as the fun is about to begin!
![Page 2: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/2.jpg)
About me
~3 years of Android Development Experience
Pursing Bachelor Degree in Computer Engineering
Akshay Chordiya
+AkshayChordiya
![Page 3: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/3.jpg)
Portfolio
Automaton Locker - 100K downloadsActive Notify - 64K downloadsJair Player - 100K downloadsFew other apps too
![Page 4: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/4.jpg)
Flavors
![Page 5: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/5.jpg)
Why Flavors?
It used to create different versions of the same application from a single project
It is extremely useful when you have a demo version and a paid version of your app, etc
![Page 6: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/6.jpg)
Demo
![Page 7: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/7.jpg)
Layout Editor
![Page 8: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/8.jpg)
Layout Editor
Using tools namespace for better Decoupling layout or Extract Layout filePicking any API level, theme, device frameLocalizationYou can even take screenshot of it!The usual stuff (Live Preview, Drag-Drop, etc)
![Page 9: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/9.jpg)
Material IconsSwitching to Vector Assets
![Page 10: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/10.jpg)
Why switch to Vector Assets
They take less spaceAlmost negligible loss of image qualityEasier maintenance. No need to maintain separate
resources for each device density. Just single fileExtremely easy to manipulate image (Tint, Alpha,
etc)Helps to create beautiful animations of imageBackward compatibility*A lot more….
![Page 11: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/11.jpg)
![Page 12: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/12.jpg)
Pre-requisites for Vector Assets
1. Upgrade your project.gradle to newer version of Gradle(Current is gradle:2.0.0-beta6)
2. Switch to new Android Studio 2.03. Switch to new AppCompat library (v23.2.0)
![Page 13: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/13.jpg)
Lint Checker
Find code that doesn't correspond to certain style guidelines
Find duplicate, extra resources, Missing translations
Suggests to use new APIs
Help finding certain performance issues
Scans potential bugs
Plethora of stuff!
![Page 14: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/14.jpg)
Demo
![Page 15: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/15.jpg)
Monitor Tools
Provides a GUI for several Android application debugging and analysis tools
Memory Monitor is used for finding the memory usage of the app
CPU Monitor is used for finding the CPU usage of the app
Network Monitor is used to track the data used by an app
GPU Monitor for Graphics stuff
![Page 16: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/16.jpg)
Demo
![Page 17: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/17.jpg)
Resource Prefix
Mainly should be used by library
Add resourcePrefix ‘tag_’ to your module gradle file
It will warn you make strings which are specific to your library with the tag specified
![Page 18: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/18.jpg)
Example
![Page 19: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/19.jpg)
Bunch of Protips
![Page 20: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/20.jpg)
Use TODO comment to remind you to complete a certain thing in future
Use Analyze Stacktrace feature to manually give stacktrace and find the POJOs causing issues
Plenty of features, tools and shortcuts demo
#ProTip
![Page 21: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/21.jpg)
Further LinksAll the logos used are trademarks of respective companies.
Android Studio
Layout Editor Guide
Android Studio Layout Editor Video
Android Studio for Experts
Android Lint - Android Tools
Device Monitor - Android Developers
Vector Asset Studio
Android Vector Graphics Video
Android Studio Vector Assets Video
![Page 22: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/22.jpg)
Questions?
![Page 23: Exploring Android Studio](https://reader031.vdocuments.mx/reader031/viewer/2022012917/58ae7bdb1a28abea4f8b5605/html5/thumbnails/23.jpg)
Thank You!