Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

GDG Devfest Southwest - Android Developer Tools Essentials

Presentation for the GDG Southwest DevFest in Phoenix on Oct 26th 2013
by

Mike Wolfson

on 3 December 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of GDG Devfest Southwest - Android Developer Tools Essentials

About Me
http://www.amazon.com/Android-Developer-Tools-Essentials-Zipalign/dp/1449328210
Book
Free and Open
Independent
of AOSP
"Developed in
the Open"
Extensible

Presentation Resources
https://github.com/mwolfson/ToolsDemo
Slides
http://www.slideshare.net/mswolfson
A tale of 2 IDEs
ADT (Eclipse)
Android Studio
http://tools.android.com/
ADT (Eclipse)
Android Studio
http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/installing/studio.html
Install
Download\Install Android SDK
http://developer.android.com/sdk/index.html
Install Latest Eclipse (Galileo - 3.5+)
"Eclipse IDE for Java Developers"
http://www.eclipse.org/downloads/
Install ADT plugin
https://dl-ssl.google.com/android/eclipse
X
Install with Bundle
http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/installing/studio.html
@mikewolfson
G+ : http://tiny.cc/mwgplus
DevFest Southwest
Phoenix, AZ
Oct 26th, 2013
by Mike Wolfson
and Donn Felker
Android Developer Tools Essentials
Command-line tools
ADB - Commands
adb help
adb devices
adb push foo.txt /sdcard/foo.txt
adb install yourApp.apk
adb uninstall com.myApp
adb shell
#sqlite3 /data/data/com.myApp/
http://developer.android.com/tools/help/adb.html
Logcat
adb logcat
Logcat - Custom Tags
Log.d("MYTAG", "Log Message");
In your Java class:
Filter based on tags:
adb logcat MYTAG:d *:s
Centralized Log for entire device
A tale of 2 IDEs
Lot's of Devices
Emulator Capabilities
Enable Non Market Apps
In your Device's 'Settings' app:
Developer Tools
In your Device's 'Settings' app:
Hidden by default in OS 4.1+
Click this 7 times
...to enable this:
Developer Options
Things to explore
USB Debugging
Allow Mock Locations
Strict Mode
Show Touches
Animation\Transition Scale
Don't keep Activities
Emulator
Creating AVDs
Snapshots
Other Alternatives
Intel HAXM
http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager
http://www.genymotion.com/
Writing Code
Automated Code Generation
Refactoring Help
Java & XML Editors
Visual Editor

Code Generation Wizards
CTRL\CMD - N
Example 1: Create Asset Set
Example 2: Generate Master\Detail Code
Code Editor: Key Combinations
Code Completion
CNTL\CMD + SPACE
Context Sensitive Assistant
CNTL\CMD + 1
Code Reformatting
CNTL\CMD + SHIFT + F
Code Navigation
Outline View
CNTL\CMD + O
Locate Resource
CNTL\CMD + SHIFT + R
Quick Run\Debug
ALT + SHIFT + A
Visual Editor
Performance Testing
{ANDROID_HOME}/sdk/toolsmonitor
DDMS
Device Interactions and Statistics
HierarchyViewer
DDMS
Important options
Screen Shot
Threads
Heap
Allocation Tracker
Emulator Control
Dump View Hierarchy
Other Performance Tools
Open GL Tracer
Pixel Perfect Viewer
Network Statistics
System Information

Remember all those devices...
OK, let's code already
http://developer.android.com/tools/debugging/ddms.html
or
Window > Open Perspective > HierarchyView | DDMS
Debug and optimize user interface
Intro
Android Debug Bridge
Other Important Tools
Lint
Monkey
MonkeyRunner
Memory Allocation Tracker (MAT)
Sensor Simulator Project

Android Virtual Devices
Improve Emulator
Startup Times
Thanks for listening!
https://github.com/mwolfson/ToolsDemo
Slides
http://www.slideshare.net/mswolfson
@mikewolfson G+ : http://tiny.cc/mwgplus
Logcat Example
Unfiltered Log:
adb logcat
Capabilities
Limitations
Google Services (Android Market, Gmail, etc)
No real phone calls
Graphics Support
Touch Events
Accessory integration (USB, headphone, etc)
Slow
Simulate Telephony (latency, connectivity; events)
Simulate Location
Emulate hardware
Networking (Port redirection; DNS; Proxy)
ARM Emulation
Media (audio not video)
http://developer.android.com/guide/developing/devices/emulator.html
Logcat Example
Filtered Log:
adb logcat TAG:* *:s
Logcat Example
Filtering with Multiple Tags:
adb logcat TAG1:* TAG2:* *:s
Agenda
Intro
Getting Started
Code Editor
Visual Editor
Common Tools
Performance Monitoring
Full transcript