Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Studio Cookbook

You're reading from  Android Studio Cookbook

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781785286186
Pages 232 pages
Edition 1st Edition
Languages
Author (1):
Mike van Drongelen Mike van Drongelen
Profile icon Mike van Drongelen
Toc

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 $15.99/month. Cancel anytime}