summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2011-04-20 22:20:46 -0700
committerScott Main <smain@google.com>2011-04-20 22:20:46 -0700
commit63848e3df3a87c111617a81ff3e1f2685de7b031 (patch)
tree611125684bd63689578f423b0055d00f8cd76687
parent6669f251391d7e61a6ea55e2538c941f82514dd9 (diff)
downloadframeworks_base-63848e3df3a87c111617a81ff3e1f2685de7b031.zip
frameworks_base-63848e3df3a87c111617a81ff3e1f2685de7b031.tar.gz
frameworks_base-63848e3df3a87c111617a81ff3e1f2685de7b031.tar.bz2
docs: add a little info to Configuration class description
Change-Id: I3278759bd1c323330c1143ef71d0644872caa085
-rw-r--r--core/java/android/content/res/Configuration.java6
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 31119d7..d20fcf9 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> {
/**