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

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

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