Search

来源:互联网 发布:淘宝中秋节活动logo 编辑:程序博客网 时间:2024/04/27 14:06

Search 

Search is a core feature on Android.Android provides a search framework.

The search framework offers two modes of search input:a search dialog at the top of the screen or a search widget(SearchView) that you can embed in your activity layout.

Once you've set up either the search dialog or the search widget, you can:

a>enable voice search

b>provide search suggestions based on recent user queries

c>provide custom search suggestions that match actual results in your application data

d>offer your application's search suggestions in the system-wide Quick Search Box

There is no guarantee that a device provides a dedicated SEARCH button that invokes the search interface in your application.When using the search button or a custom interface, you must provide a search button in your UI that activates the search interface.

Protecting User Privacy

When you implement search in your application, take steps to protect the user's privacy.To protect each user's privacy,you should abide by the following principles:

a>Don't send personal information to servers, but if you must, do not log it.

b>Provide users with  a way to clear their search history.

0 0
原创粉丝点击