FileDocCategorySizeDatePackage
AutoComplete4.javaAPI DocGoogle Android v1.5 Example3634Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.view

AutoComplete4

public class AutoComplete4 extends android.app.Activity

Fields Summary
private static final String[]
PEOPLE_PROJECTION
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        setContentView(R.layout.autocomplete_4);

        ContentResolver content = getContentResolver();
        Cursor cursor = content.query(Contacts.People.CONTENT_URI,
                PEOPLE_PROJECTION, null, null, Contacts.People.DEFAULT_SORT_ORDER);
        ContactListAdapter adapter = new ContactListAdapter(cursor, this);

        AutoCompleteTextView textView = (AutoCompleteTextView)
                findViewById(R.id.edit);
        textView.setAdapter(adapter);