I've go tthe following code:

<CODE>
public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        setContentView(R.layout.listlocations);

        //set up our ContentProvider
        locationsCursor = managedQuery(Provider.Locations.CONTENT_URI,
FIELDS, null, null, null);

        locationsCursor.moveToFirst();

        ListAdapter adapter = new SimpleCursorAdapter(this,

android.R.layout.simple_list_item_1,
                                                        locationsCursor,
                                                        new String[] {
Provider.Locations.NAME},
                                                        new int[] {R.id.name
});

        setListAdapter(adapter);

        selection=(TextView)findViewById(R.id.selection);

    }
}
</CODE>

It appears to be working.  I get what looks like two elements in a list and
I can click on them but I'm not seeing any text in the fields.  My
ContentProvider has two records and I can assign the values to variables, so
I know that's working. I can't figure out where to go from here to make it
work.

Also, to debug this, should I be using DDMS?  Right now I'm using an Eclipse
Debug Configuration becuse I can't see how DDMS can help me.


-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to