What are the tradeoffs involved in referencing Context in a library?
- by C. Ross
Context is one of the core classes of Android, and many functions it contains are useful in Android library projects, particularly accessing configuration. What are the trade offs involved in accessing the Context in a library, either by injection or by subclassing Application in the library, and subclassing that in the application.
Does this make the application brittle or introduce inappropriate coupling?