Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

3 getting to know the android tools - en-us

497 views

Published on

Android Application Development Tutorials by
Juarez Barbosa Junior
Author: Juarez Junior - juarez.barbosa@gmail.com
©Juarez Alvares Barbosa Junior - All rights reserved - 2014

Published in: Technology
  • Be the first to comment

3 getting to know the android tools - en-us

  1. 1. Getting to know the Android tools twitter.com/juarezjunior
  2. 2. • SDK Manager – helps you manage Android SDKs – http://developer.android.com/tools/help/sdk-manager.html – http://developer.android.com/sdk/installing/adding-packages.html • Emulator – allows you to test your Android app (.apk) using your workstation without having a real mobile device – Keyboard commands – Command line parameters (switches) – emulator -avd <avd_name> [-<option> [<value>]] ... [-<qemu args>] – http://developer.android.com/tools/help/emulator.html – http://developer.android.com/tools/devices/emulator.html Getting to know the Android tools
  3. 3. • Emulator – choices – Intel HAXM • http://intel.ly/ZfS8OI – GenyMotion • http://www.genymotion.com/ – Manymo • https://www.manymo.com/ Getting to know the Android tools
  4. 4. Getting to know the Android tools
  5. 5. • AVD - Android Virtual Device – Simulates a device and/or Android version (Level) image used for emulator execution – It can be launched using IDE or emulator command in CLI – emulator.exe -avd NXT-AVD-2.3.3 -netspeed full -netdelay none – emulator.exe -avd NXT-AVD-2.3.3 -netspeed full -netdelay none -verbose – emulator.exe -avd NXT-AVD-2.3.3 -netspeed full -netdelay none – emulator.exe -avd NXT-AVD-2.3.3 -netspeed full -netdelay none -version – AVD Manager • https://developer.android.com/tools/devices/index.html • http://developer.android.com/tools/help/avd-manager.html • http://developer.android.com/tools/devices/managing-avds.html • http://developer.android.com/tools/devices/managing-avds-cmdline.html Getting to know the Android tools
  6. 6. • ADB - Android Debug Bridge – ADB allows us to communicate with devices or emulator instances. Very useful bridge! – It is a client/server application that runs on device and on workstation – http://developer.android.com/tools/help/adb.html – Some ADB command examples: • adb <comando> • adb -- help • adb devices • adb logcat Getting to know the Android tools
  7. 7. – More ADB command examples: • adb kill-server / start-server • adb install <apk> / uninstall <packageName> • adb get-serialno • adb –s <serialNumber> <comando> –adb -s emulator-5554 status-window –adb start-server * daemon not running. starting it now on port 5037 * daemon started successfully * Getting to know the Android tools
  8. 8. • ADB Shell – adb shell → pwd → ls -l → cat default.prop → df → ps → exit • List services – service list • Dump services – dumpsys meminfo – dumpsys battery – dumpsys wifi – dumpsys cpuinfo • Sqlite3 interaction – cd data/data/com.android.providers.contacts – sqlite3 databases/contacts2.db • Use am = Activity Manager – am start -a android.intent.action.VIEW • Use pm = Package Manager – pm list packages Getting to know the Android tools
  9. 9. • The DDMS Perspective – Dalvik Debug Monitor Service (DDMS) is a debugging tool that allows us to use and perform several debug tasks: • Devices - Shows the list of devices and AVDs that are connected to ADB. • Emulator Control - Lets you carry out device functions. • LogCat - Lets you view system log messages in real time. • Threads - Shows currently running threads within a VM. • Heap - Shows heap usage for a VM. • Allocation Tracker - Shows the memory allocation of objects. • File Explorer - Lets you explore the device's file system. • http://developer.android.com/tools/debugging/ddms.html Getting to know the Android tools
  10. 10. juarez.barbosa@gmail.com All brands, names, reports, visual resources cited here are property of their respective owners and or corporations. This presentation has educational purposes only. All rights reserved.

×