Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Studio Cookbook

You're reading from   Android Studio Cookbook Design, test, and debug your apps using Android Studio

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785286186
Length 232 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Mike van Drongelen Mike van Drongelen
Author Profile Icon Mike van Drongelen
Mike van Drongelen
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

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 it...

There is nothing that we need to install in order to get an Android Lint report, as it is already in there with Android Studio. Just follow the next steps to make use of it:

  1. Open the project you have created in the previous recipes. Or, alternatively...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image