Questions tagged [android-lint]

Android Lint is a tool in ADT which scans Android project sources for potential bugs.

Android Lint is a tool in which scans project sources for potential bugs. It is available both as a command line tool, as well as integrated with .

Here are some examples of the types of errors that it looks for:

  • Missing translations (and unused translations)
  • Layout performance problems (all the issues the old layoutopt tool used to find, and more)
  • Unused resources
  • Inconsistent array sizes (when arrays are defined in multiple configurations)
  • Accessibility and internationalization problems (hardcoded strings, missing contentDescription, etc)
  • Icon problems (like missing densities, duplicate icons, wrong sizes, etc)
  • Usability problems (like not specifying an input type on a text field)
  • Manifest errors

and many more.

336 questions
0
votes
1 answer

Android: fixed warnings still visible in eclipse res/values

I just revised my res/values-folder, because there where values not used, and consequently there was a warning telling me that. Now that I "cleaned" the unused ones, the warnings are still visible. First I rebuilt the project a few times, restarted…
Valentino Ru
  • 4,964
  • 12
  • 43
  • 78
0
votes
1 answer

Lint not detecting project errors, although they are marked.

I was recently going over the CustomView tutorial on developers.android.com, and while I was adapting the code to my own project, I noticed that although the errors were marked, line-by-line in the class editor, they were going entirely undetected…
rm-vanda
  • 3,122
  • 3
  • 23
  • 34
0
votes
4 answers

What is an alternative to this XML layout (Lint Warning)

Alright here it is, this layout will give you 3 images that are all of equal width, that width being as wide as the longest text on the 3 textviews. They are equal width because they match_parent and the parent is wrap_content to the largest…
Blundell
  • 75,855
  • 30
  • 208
  • 233
0
votes
1 answer

Error Creating JavaDocs for Android Linter - cannot access com.android.tools.lint.detector.api.Severity

Trying to generate JavaDocs for the Android lint-cli project on Mac 10.7 Keep getting the follow errors. Loading source files for package com.android.tools.lint... Constructing Javadoc information... …
Frank Sposaro
  • 8,511
  • 4
  • 43
  • 64
-2
votes
1 answer

Is there a performance benefit to local variables vs. class/instance variables in Java (Android)?

I often define variables as class/instance variables ('global' before edit, thanks for the clarification) in my class while programming in Android. In case I need to access it later, say in another method after it's been assigned in onCreate(). For…
Mr.Drew
  • 939
  • 2
  • 9
  • 30
-2
votes
1 answer

Jenkins Android Lint Plugin , How to use it

It's my first to use stackoverflow........ Android Lint Plugin in Jenkins , I really don't know How to use it,PLZ help me 1.I kown I write "**/lint-results.xml" in Lint files, but what is lint-results ? what I should write in this file? 2.How And…
gengxm
  • 11
  • 1
1 2 3
22
23