Note that there are some explanatory texts on larger screens.

plurals
  1. POhow can i get the list item data i click on?
    primarykey
    data
    text
    <p>i have some listview and SimpleAdapter</p> <pre><code>List&lt;HashMap&lt;String, Object&gt;&gt; dataList = new ArrayList&lt;HashMap&lt;String, Object&gt;&gt;(); HashMap&lt;String, Object&gt; map = new HashMap&lt;String, Object&gt;(); map.put(ITEMTITLE, getString(R.string.broadcast_street_1_text)); map.put(ITEMDESCR, getString(R.string.broadcast_request_1_text)); dataList.add(map); map = new HashMap&lt;String, Object&gt;(); map.put(ITEMTITLE, getString(R.string.broascast_street_2_text)); map.put(ITEMDESCR, getString(R.string.broadcast_request_2_text)); dataList.add(map); SimpleAdapter adapter = new SimpleAdapter(this, dataList, R.layout.broadcast_list_item, new String[] {ITEMTITLE, ITEMDESCR}, new int[] {R.id.broadcast_list_item_title, R.id.broadcast_list_item_descr}); list.setAdapter(adapter); </code></pre> <p>so, when i click on the some list item i need to change activity. </p> <pre><code> list.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position,long arg3) { Intent intent = new Intent(getParent(), BroadcastDataActivity.class); intent.putExtra("street", arg0.getItemAtPosition(position).toString()); intent.putExtra("time", arg0.getItemAtPosition(position).toString()); parentActivity = (WorldTaxiActivityGroup) getParent(); parentActivity.startChildActivity("BroadcastData", intent); } }); </code></pre> <p>But arg0.getItemAtPosition(position) returns just an Object of data Help me, please, how can i get the data correcly?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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