Code example for Filter

Methods: filter

0
        filter.addTextChangedListener(new TextWatcher() {
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {
            } 
 
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                mFilter.filter(s);
            } 
 
            public void afterTextChanged(Editable s) {
            } 
        }); 
    } 
 
    private boolean resolveIntent() { 
        Intent intent = getIntent();
        mData = intent.getData();
 
        if (mData == null) {
            return false; 
        }