CLOSED : How to get value from listview which value item onclick
<p>CLOSED, SORRY HAVE FIX.</p>

<p>
I have success make custom adapter which extends with base adapter and I put datas from sqlite to listview. I want to get data from listview which the item I click. How to get value/object and store it to variable String. Example I have set in ItemsArtikel.class setName. And I want to getName. from listview which I click it.</p>

<p>My Code:</p>

<pre><code>rowItems = (List&lt;ItemsArtikel&gt;) db.getAllKategori(katname);

kategoriListView.setAdapter(new CustomBaseAdapter(this, rowItems));
kategoriListView.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView&lt;?&gt; parent, View view,
            int position, long id) {

        String a = // what code to get name value;
        Log.d("MyLog", "" + a);
    }
});
</code></pre>

<p>Sorry My bad english.</p>

<p>Thanks.</p>





<p>Just code as below:</p>

<pre><code>rowItems = (List&lt;ItemsArtikel&gt;) db.getAllKategori(katname);

kategoriListView.setAdapter(new CustomBaseAdapter(this, rowItems));
kategoriListView.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView&lt;?&gt; parent, View view,
            int position, long id) {

        String a = rowItems.get(position).getName();
        Log.d("MyLog", "" + a);
    }
});
</code></pre>

<p>And then I get value name. Sorry.</p>


