title: Output of listview getItemAtPosition() method gives unreadable output
body: <p>My <code>listview</code> is from a layout where its id is <code>@android:id/list</code>. It is part of the <code>android.R.id.list</code>. I used a <code>SimpleCursorAdapter</code> to <code>setAdapter</code> to <code>listview</code>. The listview contains <code>checkboxes</code> with contact names such as Emily Andrews, Susan John... I wanted to know the names of the contacts which were selected by the user. When I use the code below, it prints an object <code>android.content.ContentResolver.cursorWrapper</code>... I am not sure how to interpret this and know which contact name was selected. Is there a way I can make the output of <code>listview.getItemAtPosition()</code> readable?</p>
  
  <p>Code:</p>
  
  <pre><code> public void blockCheckedItems(View view) {  
      // int cntChoice = lv.getCount();
       checked = new ArrayList&lt;String&gt;();
       unchecked = new ArrayList&lt;String&gt;();
  
      int itempositions=adapter.getCount();
  
      SparseBooleanArray sparseBooleanArray = lv.getCheckedItemPositions();
      int countChoice = lv.getChildCount();
  
      Log.d("" + countChoice, "CountChoice===============================");
      Log.d("" + sparseBooleanArray,"sparseBooleanArray -------------------------");
  
  
  
       for(int i = 0; i &lt; countChoice; i++)
       {
  
            if(sparseBooleanArray.get(i) == true) 
            {
                checked.add(lv.getItemAtPosition(i).
                        .toString());
  
            }
            else  if(sparseBooleanArray.get(i) == false) 
            {
                unchecked.add(lv.getItemAtPosition(i).toString());
            }
  
        }
       for(int i = 0; i &lt; checked.size(); i++){
           Log.d("checked list&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;", "" + checked.get(i));
       }
       for(int i = 0; i &lt; unchecked.size(); i++){
           Log.d("in unchecked list&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;", "" + unchecked.get(i));
       }
  
  
   }
  </code></pre>