Posts in Development
Hunting Unused Android Resources with Lint

I love Lint. I love Lint because it mocks me. Lint mocks me with little yellow markers pointing out questionable code that I need to tidy, and being on the OCD-ish side, I do that.

Lint can also generate a full warnings and errors report. The report can be (and depending on your code base, often is) overwhelming, but a fairly straightforward-to-find section is the "Unused Resources". Unused resources (layouts, strings, colors, drawables, etc.) bloat the application and slow down builds. So obviously, these jerks have got to go.

Read More
AnDevCon 2014: "Building Custom Camera Applications"

I gave my first AnDevCon presentation this morning at AnDevCon Boston: "Building a Custom Camera Application." I again want to thank everyone who came to my session. I had a great time talking to you guys. There were a loose ends I wanted to tie up from the end of my session (including posting of my code and some follow-up answers I promised).

Read More
MATCH_PARENT vs FILL_PARENT: What Not to Do and What to Do

In this post I am discussing the layout mode MATCH_PARENT/FILL_PARENT as well as touching on how it works and what to do and not do with it.

Here's the short of it: unless you are compiling against Froyo (API 8), please stop using FILL_PARENT to specify layout_width and layout_height. Use MATCH_PARENT. They have the same integer value, but FILL_PARENT is deprecated and the name itself is misleading. Please, use MATCH_PARENT.

Read More