diff options
author | Android Code Review <code-review@android.com> | 2009-11-08 12:33:19 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2009-11-08 12:33:19 -0800 |
commit | 4d88cbd98e3398e9f8db48c4a054fba467a242ba (patch) | |
tree | 76fb70f44ce952f5d50d7bbda03601863542523f /core | |
parent | 7c70af0458e4ea5a5e39725d24e31b624f78a1c9 (diff) | |
parent | a01d5fe8794974a18408897744675e1c59af1ed4 (diff) | |
download | frameworks_base-4d88cbd98e3398e9f8db48c4a054fba467a242ba.zip frameworks_base-4d88cbd98e3398e9f8db48c4a054fba467a242ba.tar.gz frameworks_base-4d88cbd98e3398e9f8db48c4a054fba467a242ba.tar.bz2 |
Merge change Ia01d5fe8
* changes:
Fix documentation example, per issue 895 on android.googlecode.com
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/ListActivity.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/app/ListActivity.java b/core/java/android/app/ListActivity.java index 5523c18..19b99c8 100644 --- a/core/java/android/app/ListActivity.java +++ b/core/java/android/app/ListActivity.java @@ -152,7 +152,7 @@ import android.widget.ListView; * // Query for all people contacts using the {@link android.provider.Contacts.People} convenience class. * // Put a managed wrapper around the retrieved cursor so we don't have to worry about * // requerying or closing it as the activity changes state. - * mCursor = People.query(this.getContentResolver(), null); + * mCursor = this.getContentResolver().query(People.CONTENT_URI, null, null, null, null); * startManagingCursor(mCursor); * * // Now create a new list adapter bound to the cursor. @@ -161,9 +161,9 @@ import android.widget.ListView; * this, // Context. * android.R.layout.two_line_list_item, // Specify the row template to use (here, two columns bound to the two retrieved cursor * rows). - * mCursor, // Pass in the cursor to bind to. - * new String[] {People.NAME, People.COMPANY}, // Array of cursor columns to bind to. - * new int[]); // Parallel array of which template objects to bind to those columns. + * mCursor, // Pass in the cursor to bind to. + * new String[] {People.NAME, People.COMPANY}, // Array of cursor columns to bind to. + * new int[] {android.R.id.text1, android.R.id.text2}); // Parallel array of which template objects to bind to those columns. * * // Bind to our new adapter. * setListAdapter(adapter); |