Is it possible to get application’s context in an Android Library Project?
There is one more way, add application class in your library project: /** * Base class for those who need to maintain global application state. */ public class LibApp extends Application { /** Instance of the current application. */ private static LibApp instance; /** * Constructor. */ public LibApp() { instance = this; } /** … Read more