FileDocCategorySizeDatePackage
AutoComplete5.javaAPI DocAndroid 1.5 API1861Wed May 06 22:41:08 BST 2009com.example.android.apis.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 savedInstanceState)

        super.onCreate(savedInstanceState);
        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(this, cursor);

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