Top Banner
Android Essen+al Tools Version 20120819 (Android 4.1) Jussi Pohjolainen Tampere University of Applied Sciences
15

Android Essential Tools

Nov 22, 2014

Download

Technology

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Android Essential Tools

 Android  Essen+al  Tools  

Version  2012-­‐08-­‐19  (Android  4.1)  Jussi  Pohjolainen  

Tampere  University  of  Applied  Sciences  

Page 2: Android Essential Tools

Essen+al  Tools  •  android –  To  create/update  Android  projects  and  modify  Android  Virtual  Devices  

•  Android  Emulator  –  To  run  your  app  

•  adb  (Android  Debug  Bridge)  –  Interface  between  emulator  or  device.  Install  apps,  shell  the  device,  issue  commands  

•  Ant  –  To  compile  and  build  your  apps  

•  Keytool  and  Jarsigner  –  To  sign  your  .apk  package  

Page 3: Android Essential Tools

Crea+ng  Project:  Targets  

Page 4: Android Essential Tools

Crea+ng  Project  

Page 5: Android Essential Tools

Result  

Page 6: Android Essential Tools

Building  

•  For  debug:  – ant debug

•  For  release  – ant release

•  Release  version  must  signed  using  keytool  and  jarsigner  

Page 7: Android Essential Tools

Building  

Page 8: Android Essential Tools

Android  Virtual  Devices  

•  To  run  the  emulator,  you  must  configure  android  virtual  device  

•  To  open  AVD,  use  command  android avd •  Click  new  to  create  new  AVD  

Page 9: Android Essential Tools
Page 10: Android Essential Tools

Star+ng  the  Emulator  

•  In  avd,  click  start  Or    •  use  emulator –avd youravd  command  in  command  line  

Page 11: Android Essential Tools

Installing  App  

•  The  compiled  and  packaged  applica+on  can  be  found  in  the  bin/  directory  

•  In  debug  –  mode,  the  app  cannot  be  distributed  in  Google  Play,  but  it  can  be  installed  on  device  or  emulator  

•  To  see  list  of  devices  a9ached  to  your  computer  (devices,  emulators),  use  command  adb devices

•  adb? =  Android  Debug  Bridge,  command  line  tol  for  communica+ng  between  devices  and  emulators  

Page 12: Android Essential Tools
Page 13: Android Essential Tools

Installing  

•  You  need  to  use  the  adb  app  to  install  the  app  •  If  you  have  only  one  device  aZached,  the  following  command  is  enough:  – adb install HelloWorld-debug.apk

•  If  you  have  several  devices  aZached,  then  you  must  specify  the  target  – adb –s emulator-5554 install HelloWorld-debug.apk

 

Page 14: Android Essential Tools

Installing  

Page 15: Android Essential Tools