Infinum Android Talks #04 - Android Lint
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Infinum Android Talks #04 - Android Lint

on

  • 301 views

Android lint tool is a static code analysis tool that checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, ...

Android lint tool is a static code analysis tool that checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization.

I'll show few examples and suggestions how we can use it to make application development more enjoyable.

Statistics

Views

Total Views
301
Views on SlideShare
301
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Infinum Android Talks #04 - Android Lint Presentation Transcript

  • 1. Android lint Nikola Kapraljević nixa
  • 2. Static code analysis tool that checks your Android project source files.
  • 3. lint • introduced in ADT 16 (and Tools 16)! • scans Android project sources for potential bugs! • available as! • command line tool! • integrated with Android Studio
  • 4. Code scanning workflow
  • 5. $ gradle lint
  • 6. errors
  • 7. no errors
  • 8. android studio doesn’t use lint.xml
  • 9. command line demo
  • 10. Android Studio
  • 11. Android Studio integration
  • 12. configuring checks
  • 13. Suppress problems
  • 14. available checks • $ lint —show! • lists all available checks! • http://tools.android.com/tips/lint-checks
  • 15. my favorites • StringFormatMatches - Ensures that the format used in <string> definitions is compatible with the String.format call! • MissingTranslation - Checks for incomplete translations where not all strings are translated! • ExtraTranslation - Checks for translations that appear to be unused! • SpUsage - Looks for uses of dp instead of sp dimensions for text sizes! • UnusedResources - Looks for unused resources! • HardcodedText - Looks for hardcoded text attributes which should be converted to resource lookup
  • 16. links • http://tools.android.com/tips/lint! • http://developer.android.com/tools/help/lint.html
  • 17. Thank you.