Fixed a bunch of lint errors in code and resources
Added a convenience class for checking Android API version