What are the tradeoffs involved in referencing Context in a library?
        Posted  
        
            by 
                C. Ross
            
        on Programmers
        
        See other posts from Programmers
        
            or by C. Ross
        
        
        
        Published on 2013-11-09T17:17:58Z
        Indexed on 
            2013/11/09
            22:08 UTC
        
        
        Read the original article
        Hit count: 303
        
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?
© Programmers or respective owner