Perhaps you can use Android.Lint
Android Lint is a new tool introduced in ADT 16 (and Tools 16) that scans Android project sources for potential errors. It is available as a command line tool and is integrated with Eclipse (described below) and IntelliJ. The architecture is intentionally independent of the IDE, so it will hopefully be integrated with other IDEs, with other building tools, and with continuous integration systems.
The following are examples of the types of errors he is looking for:
- Missing translations (and unused translations)
- Layout performance issues (all issues used by the old layoutopt tool and more)
- Unused resources
- Inconsistent array sizes (when arrays are defined in multiple configurations)
- Accessibility and internationalization issues (hard-coded strings, missing content Description, etc.)
- Usability (for example, without specifying the type of input in the text box)
send http://tools.android.com/tips/lint
source share