Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a01d5fe8 authored by Joe LaPenna's avatar Joe LaPenna
Browse files

Fix documentation example, per issue 895 on android.googlecode.com

parent 8ecb36ee
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -152,7 +152,7 @@ import android.widget.ListView;
 *         // Query for all people contacts using the {@link android.provider.Contacts.People} convenience class.
 *         // 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
 *         // 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.
 *         // 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);
 *         startManagingCursor(mCursor);
 * 
 * 
 *         // Now create a new list adapter bound to the cursor. 
 *         // Now create a new list adapter bound to the cursor. 
@@ -163,7 +163,7 @@ import android.widget.ListView;
 * rows).
 * rows).
 *                 mCursor,                                              // Pass in the cursor to bind to.
 *                 mCursor,                                              // Pass in the cursor to bind to.
 *                 new String[] {People.NAME, People.COMPANY},           // Array of cursor columns 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.
 *                 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.
 *         // Bind to our new adapter.
 *         setListAdapter(adapter);
 *         setListAdapter(adapter);