What's the difference between android.app.default_searchable and android.app.searchable meta-data?

只愿长相守 提交于 2019-12-05 08:38:45

The difference is that android.app.default_searchable is used to declare which searchable activity to use for searches, the activity has enabled the search dialog. While the user is in this activity and when the user executes the search, the system starts SearchableActivity and delivers it the ACTION_SEARCH intent.
By instance if you want to show the search dialog and deliver searches to other activity, you must declare in the manifest that activity1 targeted as android.app.searchable is the searchable activity to use for the search dialog in activity2 targeted as android.app.default_searchable.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!