public final class ConfigurationCollector
extends java.lang.Object
Configuration
object through reflection API in order to
generate a human readable String with values replaced with their constants
names. The Configuration.toString()
method was not enough as values
like 0, 1, 2 or 3 aren't readable. Using reflection API allows to
retrieve hidden fields and can make us hope to be compatible with all Android
API levels, even those which are not published yet.Constructor and Description |
---|
ConfigurationCollector(android.content.Context context,
Element initialConfiguration) |
Modifier and Type | Method and Description |
---|---|
static Element |
collectConfiguration(android.content.Context context)
Returns the current Configuration for this application.
|
public ConfigurationCollector(@NonNull android.content.Context context, @NonNull Element initialConfiguration)
@NonNull public static Element collectConfiguration(@NonNull android.content.Context context)
context
- Context for the application being reported.