Get new ArrayList<String> of obtained Strings after searching from an ArrayList<String> using TextWatcher Android : **How can I get a new ArrayList<String> of search results after searching from an ArrayList<String> using TextWatcher in android?**<br>
The following is my code for searching from an ArrayList<String> using EditText >> **edtSearch**. The search function is working well. Need to put the obtained data into a new ArrayList<String>:


> edtSearch.addTextChangedListener(new TextWatcher()){
>
>                 @Override
>                 public void beforeTextChanged(CharSequence s, int start, int count, int after) {
> 
>                 }
> 
>                 @Override
>                 public void onTextChanged(CharSequence s, int start, int before, int count) {
>                     MainActivity.this.adapter.getFilter().filter(s);
>                 }
> 
>                 @Override
>                 public void afterTextChanged(Editable s) {
> 
>                 }
>             });
