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

AutoComplete5

public class AutoComplete5 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_5);

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

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