| Constructor and Description |
|---|
ContextTools() |
| Modifier and Type | Method and Description |
|---|---|
static Context |
getApplicationContext(Context context)
Returns the application
Context. |
static String |
getApplicationName(Context context)
Returns the application's name.
|
public static Context getApplicationContext(Context context)
Returns the application Context.
If the application-context provided by the given Context-object returns null,
it is safe to assume that it is the application-context already, so it is plainly returned.
context - The Context-object to request the application-context from.public static String getApplicationName(Context context)
context - The The Context-object to use for retrieving the application-name.