Added: Mark Android dependency as provided to avoid collision with code deployed on phones.
Refactor: extract runInMainThread method from post method.
Refactor: add Override annotation.