Hi TreKing, Thanks for reply
           After changing code as now I get the item name of checkbox.

 listView.setOnItemClickListener(new ListView.OnItemClickListener() {

                        @Override
                        public void onItemClick(AdapterView<?> arg0, View arg1, 
int arg2,
                                        long arg3)
                        {
                                // TODO Auto-generated method stub
                                System.out.println ("User checked boxes");
                                System.out.println 
("###"+listView.getItemAtPosition(arg2));


                        }


        });

But what I want is "I want only name of that item which are selected".
Because using above method it returns every time item name if checkbox
select or deselect. I think I have to use method name as
setOnCheckedChangeListener but can't succeed to implement it.


On Dec 21, 8:43 pm, TreKing <[email protected]> wrote:
> On Tue, Dec 21, 2010 at 5:28 AM, pramod.deore <[email protected]>wrote:
>
> > How to get name of selected checkbox items?
>
> Keep a reference to your adapter, which has the names, and index into it
> when the list is clicked.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to