简体   繁体   中英

How to add a search engine feature in an Android application?

I need to create a search engine feature for my application. It should search particular websites. Is there any way to develop this in Android. 接口

I need to add this as a feature in my Android application.

initialize in your activity edittext for me is it address_search_view

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

                                                        

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM