Fixing crashing bugs and addressing Android Lint warnings.