ANDROID DEVELOPMENT PRIMER
01-22-2015
+Gerard Cordero@GerardCordero
http://goo.gl/DdsLO2
IDE DOWNLOAD AND INSTALLATION
ANDROID STUDIO• The IDE for building Android-based
applications
• Phone and Tablet
• Android TV
• Android Wear
• Glass
DOWNLOADING ANDROID STUDIO
1. Go here:
• http://developer.android.com/sdk/index.html
2. Click on “Download Android Studio”
3. Extract and run the executable (Mac users: see next slide first)
EXTRA STEPS FOR MAC USERS• Preform these steps before running the install
program
1.Apple > System Preferences
2.Security & Privacy
3.Set to “Mac App Store and identified developers” or “Anywhere”
4.Run the install program
5.Afterwards, set it back to “Mac App Store"
TOUR OF ANDROID STUDIO
ANDROID STUDIO IN ACTION
ANDROID STUDIO IN ACTION
Folder and File Explorer
ANDROID STUDIO IN ACTION
Tabs for each open file
ANDROID STUDIO IN ACTION
Design and Code view switcher
ANDROID STUDIO IN ACTION
Component Palette when editing
a Layout
ANDROID STUDIO IN ACTION
Graphical interface for editing Layouts
ANDROID STUDIO IN ACTIONLogical hierarchy of
UI components
ANDROID STUDIO IN ACTION
Properties of the currently selected UI
element
ANDROID STUDIO IN ACTION
For picking which app to run or debug (Android, Wear, …)
ANDROID STUDIO IN ACTION
Run or Debug the currently selected app
ANDROID STUDIO IN ACTION
Debugger interface
ANDROID STUDIO IN ACTION
Debugger commands (rerun, resume, stop, step over,
step into, …)
ANDROID STUDIO IN ACTION
Autos
ANDROID STUDIO IN ACTION
Watches
ANDROID STUDIO IN ACTION
Code editor when editing java
file
ANDROID STUDIO IN ACTION
For checking your app’s memory usage
RESOURCES• Non-executable parts of an app
• Drawable - icons
• Layout - UI layout
• for landscape: create layout-land folder
• Menu - Menu items
• Values - for themes, and storing key-value pairs
• for other language: values-es
JAVA CODE• Per Android Developer site, you need
JDK 7
• http://developer.android.com/sdk/index.html
• resides in src > main > java
• MainActivity.java - default starting point
PACKAGES• As your app gets bigger, you need to organize it
• That’s where packages come in
• make folders for modules
• adjust the “package” statement at the top of affected java file
• Example (left): GDG app, from https://github.com/gdg-x/frisbee/tree/develop/app/src/main/java/org/gdg/frisbee/android
DEVELOPER RESOURCES
ANDROID DEVELOPER SITE
• http://developer.android.com/index.html
• Main source of documentation
• You will be here a lot!
DESIGN
• This section contains guides on making great UIs
DEVELOP
• This is where you go for coding help
DEVELOP > TRAINING
• Step by step instructions on various topics
DEVELOP > API GUIDES
• Detailed concepts and sample code on various topics
DEVELOP > REFERENCE
• Detailed reference on Packages, Interfaces, Classes, Constructors, Methods
DISTRIBUTE
• Guides on Publishing and Monetizing apps, as well as user acquisition
YOUTUBE CHANNELS• Android Developers:
• https://www.youtube.com/user/androiddevelopers
• Google Developers:
• https://www.youtube.com/user/GoogleDevelopers
• Slide Nerd:
• https://www.youtube.com/user/slidenerd
ONLINE COURSES
• Coursera:
• https://www.coursera.org/course/android
• Udacity:
• https://www.udacity.com/course/ud853
ADVANCED HELP
• Stack Overflow:
• http://stackoverflow.com/questions/tagged/android
Q&A
• Questions?
• Comments?
• Suggestions?
HAPPY CODING!Share this presentation:
http://goo.gl/hiEE1u