【问题标题】:How to add a search engine feature in an Android application?如何在 Android 应用程序中添加搜索引擎功能?
【发布时间】:2016-09-11 13:30:53
【问题描述】:

我需要为我的应用程序创建一个搜索引擎功能。它应该搜索特定的网站。有没有办法在Android中开发这个。

我需要将此作为一项功能添加到我的 Android 应用程序中。

【问题讨论】:

    标签: java android android-studio search-engine


    【解决方案1】:

    在你的活动中为我初始化edittext是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) {
       }
    });
    
                                                            
    

    【讨论】:

    • 这里如何指定特定网站,如自定义搜索引擎?我也想在里面挖矿
    猜你喜欢
    • 1970-01-01
    • 2014-07-02
    • 1970-01-01
    • 2011-11-11
    • 1970-01-01
    • 2010-10-24
    • 2016-04-08
    • 2021-07-26
    • 2017-09-02
    相关资源
    最近更新 更多