When you want to use class Bar from package foo,there are two possible ways to import it:
Pros: Potentially reduces the number of import statements.
Pros: Makes it obvious what classes are actually used. Makes code more readable for maintainers.
Decision: Use the latter for importing all Android code. An explicit exception is made for java standard libraries (
java.io.*, etc.) and unit test code (