How to use dependency injection, mocking, and a test runner to automate UI & unit testing. Sample app source on GitHub: https://github.com/abdyer/android-test-demo