Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2093314
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类: 嵌入式

2011-07-28 11:12:16

  1. UI
    • layoutopt
      Ref:
      • http://developer.android.com/guide/developing/debugging/debugging-ui.html#layoutopt

      Optimize layout files, such as to check if there is useless element.
    • hierarchyviewer
      Ref:
      • http://developer.android.com/guide/developing/debugging/debugging-ui.html#HierarchyViewer

      View layout hierarchy of an application running on Emulator or devices running a developer version of the Android system.

      Simple usage:
      • To load view hierarchy, click button "Load View Hierarchy"
      • To view a single view object, double click the view in hierarchy
      • You can view the whole layout hierarchy, a single view, their object, and you can alse save hierarchy as PNG
    • draw9patch (create a NinePatch graphic)
      Ref: http://developer.android.com/guide/developing/tools/draw9patch.html
    • xxx
  2. Dev
    • android
      Ref: http://developer.android.com/guide/developing/tools/android.html

      Lets you:
      • Create, delete, and view Android Virtual Devices (AVDs).
      • Create and update Android projects.
      • Update your Android SDK with new platforms, add-ons, and documentation.


    • ProGuard
      Ref: http://developer.android.com/guide/developing/tools/proguard.html

      Used to shrink, optimize, and obfuscate source code.

    • zipalign
      Ref: http://developer.android.com/guide/developing/tools/zipalign.html

      zipalign is an archive alignment tool that provides important optimization to Android application (.apk) files.

      zipalign must only be performed after the .apk file has been signed with your private key. If you perform zipalign before signing, then the signing procedure will undo the alignment
    • apkbuilder
      To create apk file.
    • aapt (Android Asset Packaging Tool)
      Permissions, resources, configurations related APK file.
    • xxx
  3. Profiling
    Ref:
    • http://developer.android.com/guide/developing/debugging/debugging-tracing.html

    Objective: Profile application's performance, just like tool 'gprof' under Unix.

    Method:
    • DDMS
      • Click button 'Start Method Profiling'
      • Do some opearation to monitor target application
      • Click button 'Stop method Profiling', and wait for a while, then a window will pop up automatically to display results.
    • Debug Code
      // start tracing to "/sdcard/calc.trace"
      Debug.startMethodTracing("calc");
      // ...
      // stop tracingDebug.stopMethodTracing();

      And then uses one of the following tools to view resule
      • traceview
      • dmtracedump
    • hprof-conv
      Ref: http://developer.android.com/guide/developing/tools/hprof-conv.html

      Convert the HPROF file that is generated by the Android SDK tools to a standard format so you can view the file in a profiling tool of your choice.
    • xxx
  4. Test & Debug
    • adb (Android Debug Bridge)
      Ref: http://developer.android.com/guide/developing/tools/adb.html

      adb is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device:
      • Start/Stop server
      • Shell command (adb shell )
        1. monkey
          Ref: http://developer.android.com/guide/developing/tools/monkey.html

          Generate pseudo-random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events.

          You can use the Monkey to stress-test applications that you are developing, in a random yet repeatable manner.

        2. dumpsys (Dump system data to the screen)
        3. dumpstate (Dump state to a file)
        4. dmesg (Dump kernel message)
        5. bmgr (Interact with the Backup Manager on devices)
          You can:
          • Backup application's data
          • Restore data
          • Wipe application's data
        6. sqlite3
          Ref: http://developer.android.com/guide/developing/tools/adb.html#sqlite

          To manage SQLite databases created by Android applications.
        7. xxx
      • Query for Emulator/Device Instances
      • Install/Uninstall an Application
      • Push/Pull file/dir
      • Debug
        1. logcat (Manage log messages)
          Ref: http://developer.android.com/guide/developing/tools/logcat.html

        2. bugreport
      • xxx
    • ddms
    • mksdcard
      Create a FAT32 disk image that you can load in the emulator.
    • mulator
      Ref: http://developer.android.com/guide/developing/tools/emulator.html

      • Options of 'emulator'
      • Hot keys of enumator, such as BACK, CTRL+F11 etc

    • dmtracedump (Generate graphical call-stack diagrams from trace log files)
      Ref: http://developer.android.com/guide/developing/tools/dmtracedump.html
    • monkeyrunner
      Ref: http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html

      The monkeyrunner tool is not related to the UI/Application Exerciser Monkey (also known as the monkey).

      The monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code. Such as to write a Python program that installs an Android application or test package, runs it, sends keystrokes to it, takes screenshots of its user interface, and stores screenshots on the workstation.
    • xxx
  5. xxx
阅读(845) | 评论(0) | 转发(0) |
0

上一篇:[PM] Time Management

下一篇:[Android] Tablet

给主人留下些什么吧!~~