Although you should avoid having your code tied to Android components, it's not always possible. Maybe it's Activity code, or a component that needs Context. But you still should test it.
Those tests will have to run on an emulator or a real device. They are going to be slower. But they are important nevertheless.
Here's how you can do that...
Read More