Android Tools for Developers       Paul Marois - GenYmobile
IntroductionWho Am I ?● Android Developer.● Android GENYMOBILE employee.What this presentation will be ?● A totally subjec...
Emulator
EmulatorLatest additionGPU Support ● SDK tools > 17 ● emulator -avd <avd_name> -gpu onImproved CPU performanceMore hardwar...
EmulatorEmulator Telnet Interface
Emulator  Telephony          DDMS / Emulator   Camera               Webcam   Sensor            Tethered Device  Multitouch...
New Wizard & Layout   Configuration
Lint●   Available in ADT > 16.●   Bug detector.●   Multiple Inputs file types : xml, java, ...●   Multiple Output file typ...
LintCreate Your Own Rules●   Import lint_api.jar●   Create a detector which can identify one or more different types of   ...
Device MonitorHierarchyViewer
Device MonitorHierarchyViewer●   Do not work on devices for security reason     ○ https://github.com/romainguy/ViewServer ...
Device Monitoradb command lines●    Adb bugreport      ○ Complete log of the system.●    adb shell dumpsys : log of servic...
Device MonitorEx : adb shell dumpsys meminfo <pid>
Device MonitorSystrace●   Settings > Developer Options > Enable Traces●   sdk/tools/systrace●   python ./systrace.py
Device MonitorTraceview
Device MonitorMonkey●   Generate pseudo-random streams of user events on an emulator    or device●   adb shell monkey [opt...
And more...●   Draw9patch●   OpenGLTracer●   Procrank●   DexGuard●   AndroVM●   AndroidAnnotations●   RenderScript●   ETC...
ThanksQ&A
BonusMAT
Upcoming SlideShare
Loading in …5
×

OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile

738 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
738
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile

  1. 1. Android Tools for Developers Paul Marois - GenYmobile
  2. 2. IntroductionWho Am I ?● Android Developer.● Android GENYMOBILE employee.What this presentation will be ?● A totally subjective presentation about official tools I find interesting or useful.● Not about tools presented elsewhere in OWF.
  3. 3. Emulator
  4. 4. EmulatorLatest additionGPU Support ● SDK tools > 17 ● emulator -avd <avd_name> -gpu onImproved CPU performanceMore hardware feature emulation● SDKController in tools/apps/● adb forward tcp:1970 localabstract:android.sdk.controller ○ MultiTouch Input Emulation ○ Sensor Emulation
  5. 5. EmulatorEmulator Telnet Interface
  6. 6. Emulator Telephony DDMS / Emulator Camera Webcam Sensor Tethered Device Multitouch Tethered DeviceNFC / Bluetooth Future ?
  7. 7. New Wizard & Layout Configuration
  8. 8. Lint● Available in ADT > 16.● Bug detector.● Multiple Inputs file types : xml, java, ...● Multiple Output file types : text, html, xml, ...● Multiple Front-Ends : Eclipse, IntelliJ, command line.● Multiple severity warnings.● Jenkins Plugin. ○ https://wiki.jenkins-ci.org/display/JENKINS/Android+Lint+Plugin● API to write additional checks.
  9. 9. LintCreate Your Own Rules● Import lint_api.jar● Create a detector which can identify one or more different types of "issues" that youll create too. ○ public class MyDetector extends ResourceXmlDetector● Provide your own registry. ○ public class MyIssueRegistry extends IssueRegistry● Create your manifest ○ Lint-Registry: owf.demo.MyIssueRegistry● Put the jar into ~/.android/lint folder
  10. 10. Device MonitorHierarchyViewer
  11. 11. Device MonitorHierarchyViewer● Do not work on devices for security reason ○ https://github.com/romainguy/ViewServer ○ Requires Internet Permission ○ Mode Debug only● onCreate : ○ ViewServer.get(this).addWindow(this);● onDestroy ○ ViewServer.get(this).removeWindow(this);● onResume ○ ViewServer.get(this).setFocusedWindow(this);● Customizable ○ @ViewDebug.ExportedProperty
  12. 12. Device Monitoradb command lines● Adb bugreport ○ Complete log of the system.● adb shell dumpsys : log of services ○ ex : adb shell dumpsys meminfo <pid> Exs : SurfaceFlinger permission meminfo batteryinfo alarm phone network_management bluetooth appwidget power nfc gfxinfo audio vibrator notification hardware battery wallpaper ...
  13. 13. Device MonitorEx : adb shell dumpsys meminfo <pid>
  14. 14. Device MonitorSystrace● Settings > Developer Options > Enable Traces● sdk/tools/systrace● python ./systrace.py
  15. 15. Device MonitorTraceview
  16. 16. Device MonitorMonkey● Generate pseudo-random streams of user events on an emulator or device● adb shell monkey [options] <event-count> ○ ex : adb shell monkey -p com.google.android.apps.iosched -v 500
  17. 17. And more...● Draw9patch● OpenGLTracer● Procrank● DexGuard● AndroVM● AndroidAnnotations● RenderScript● ETC...
  18. 18. ThanksQ&A
  19. 19. BonusMAT

×