Kiran Kumar Kendole wrote: > I gone through the two solutions. neither helped me . Can anybody please > help me. > My code is... > *ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,* > * android.R.layout.simple_list_item_multiple_choice, values);* > * setListAdapter(adapter);* > * ListView list=getListView();* > * list.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);* > > I want to add the background image to the same activity. > > > Thanks, > KIRANKUMARKENDOLE > > > On Tue, Dec 13, 2011 at 7:36 AM, skink <[email protected]> wrote: > > > > > > > akash jain wrote: > > > for this you can use ArrayAdapter with 2 argument......first the context > > > and another is layout....now to get the values from database...and add > > that > > > value to adapter...e.g > > > adapter.add(......); > > > its working.............. > > > > don't do that, use > > http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html > > instead > > > > pskink > > > > -- > > 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 > >
replace android.R.layoutsimple_list_item_multiple_choice with your custom list item defined in res/layout pskink -- 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

