diff options
-rw-r--r-- | core/java/android/content/res/Configuration.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/content/res/Configuration.java b/core/java/android/content/res/Configuration.java index 72fa07c..47c2623 100644 --- a/core/java/android/content/res/Configuration.java +++ b/core/java/android/content/res/Configuration.java @@ -26,7 +26,11 @@ import java.util.Locale; * This class describes all device configuration information that can * impact the resources the application retrieves. This includes both * user-specified configuration options (locale and scaling) as well - * as dynamic device configuration (various types of input devices). + * as device configurations (such as input modes, screen size and screen orientation). + * <p>You can acquire this object from {@link Resources}, using {@link + * Resources#getConfiguration}. Thus, from an activity, you can get it by chaining the request + * with {@link android.app.Activity#getResources}:</p> + * <pre>Configuration config = getResources().getConfiguration();</pre> */ public final class Configuration implements Parcelable, Comparable<Configuration> { /** |