Code example for ArrayAdapter

Methods: getCount

0
		} 
    } 
     
    @Override 
    public boolean performClick() { 
    	if (adapter.getCount() > 0) showDropDown();
    	return super.performClick(); 
    } 
     
    public String getHistoryString() {
    	StringBuilder string = new StringBuilder();
		for(int i=0; i < adapter.getCount(); i++) {
            string.append(adapter.getItem(i));
            string.append("\n");
        } 
    	return string.toString();
    } 
 
	public boolean onEditorAction(TextView arg0, int actionId, KeyEvent event) {
		if (actionId == EditorInfo.IME_NULL) {
			String line = getText().toString();