Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your problem is in here:</p> <pre><code> R.layout.grouplistlayout, new int[] { R.id.listview_grouplist }); </code></pre> <p>The top one should be pointing to a list layout, like <code>android.R.layout.simple_list_item_1</code> The bottom one should be pointing to to a TextView, not a list view. </p> <p>Also, I don't see where you are binding the adapter to the listview.</p> <p>From the <a href="http://developer.android.com/reference/android/widget/SimpleAdapter.html" rel="nofollow">SimpleAdapter docs</a>:</p> <pre><code>public SimpleAdapter(Context context, List&lt;? extends Map&lt;String, ?&gt;&gt; data, int resource, String[] from, int[] to) </code></pre> <blockquote> <p><em>Since: API Level 1</em></p> <h2>Constructor</h2> <p><em><strong>Parameters</strong></em><br> <strong>context</strong> <em>The context where the View associated with this SimpleAdapter is running</em><br> <strong>data</strong> <em>A List of Maps. Each entry in the List corresponds to one row in the list. The Maps contain the data for each row, and should include all the entries specified in "from"</em><br> <strong>resource</strong> <em>Resource identifier of a view layout that defines the views for this list item. The layout file should include at least those named views defined in "to"</em><br> <strong>from</strong> <em>A list of column names that will be added to the Map associated with each item.</em><br> <strong>to</strong> <em>The views that should display column in the "from" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the from parameter.</em></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload