O'Reilly logo

Android Studio Cookbook by Mike van Drongelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code analysis

Code analysis tools, such as Android Lint, can help you detect potential bugs and how your app can be optimized for security, usability, and performance.

Android Lint comes with Android Studio, but there are also other tools available such as: Check Style, Project Mess Detector (PMD), and Find Bugs. In this recipe, we will only have a look at Android Lint.

Getting ready

  • Most ideally, you would have completed the first two recipes of this chapter, so we will now examine the results of the app. However, you can use Android Lint (or another tool) on any project to see where things can be improved.

Note

The support annotations of the first recipe influence the results being displayed. Yes, that is right, we cause these warnings.

How to do ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required