Faber Fedor wrote:
> ListAdapter adapter = new SimpleCursorAdapter(this,
>
> android.R.layout.simple_list_item_1,
> locationsCursor,
> new String[]
> {Provider.Locations.NAME <http://Provider.Locations.NAME>},
> new int[]
> {R.id.name <http://R.id.name>});
AFAIK, android.R.layout.simple_list_item_1 does not have a TextView with
the ID of R.id.name. Try android.R.id.text1 instead.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---