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

AutoComplete1

public class AutoComplete1 extends android.app.Activity

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

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

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, COUNTRIES);
        AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit);
        textView.setAdapter(adapter);