|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.todoroo.andlib.service.ContextManager
public final class ContextManager
Singleton class to manage current application context b
| Constructor Summary | |
|---|---|
ContextManager()
|
|
| Method Summary | |
|---|---|
static android.content.Context |
getContext()
Gets the global context |
static android.content.res.Resources |
getResources()
Convenience method to read resources |
static java.lang.String |
getString(int resId,
java.lang.Object... formatArgs)
Convenience method to read a string from the resources |
static void |
setContext(android.content.Context context)
Sets the global context |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextManager()
| Method Detail |
|---|
public static void setContext(android.content.Context context)
context - public static android.content.Context getContext()
public static java.lang.String getString(int resId,
java.lang.Object... formatArgs)
resId - resourceparameters - % arguments
public static android.content.res.Resources getResources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||