I have a class that needs to obtain a reference to it's application's AssetManager
. This class does not extend any sort of android UI class, so it doesn't have a getContext()
method, or anything similar. Is there some sort of static Context.getCurrentApplicationContext()
type of method?
To clarify: my class is intended to be used like a library, for other applications. It has no associated AndroidManifest.xml
or control over the context which is calling it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…