Questions tagged [android-search]

Search is a core user feature on Android. Users should be able to search any data that is available to them, whether the content is located on the device or the Internet. To help create a consistent search experience for users, Android provides a search framework that helps you implement search for your application.

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. In either case, the Android system will assist your search implementation by delivering search queries to a specific activity that performs searchs. You can also enable either the search dialog or widget to provide search suggestions as the user types. Figure 1 shows an example of the search dialog with optional search suggestions.

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

  • Enable voice search
  • Provide search suggestions based on recent user queries
  • Provide custom search suggestions that match actual results in your application data
  • Offer your application's search suggestions in the system-wide Quick Search Box

The following documents show you how to use Android's framework to implement search:

Creating a Search Interface:

How to set up your application to use the search dialog or search widget.

Adding Recent Query Suggestions:

How to provide suggestions based on queries previously used.

Adding Custom Suggestions:

How to provide suggestions based on custom data from your application and also offer them in the system-wide Quick Search Box.

Searchable Configuration:

A reference document for the searchable configuration file (though the other documents also discuss the configuration file in terms of specific behaviors).

413 questions
0
votes
1 answer

Android: Search through ListView objects via SearchView

I want to put search feature to my app via SearchView in ActionBar - I have ListView with some objects. When the search is submitted i want to show the data which is contained in search query to show in another activity in a ListView. To store the…
0
votes
2 answers

Listview filtering not working - Android

I am tying to implement search functionality in my app. I am using a custom ArrayAdapter for the listview as I have two textViews in a row. My app doesn't force close but the search is not working properly. It is not filtering the listview…
user3234390
  • 97
  • 4
  • 10
0
votes
0 answers

NullPointerException At searchForm.createAnswerForm();

I want to get list of register user but i am getting a null pointer exception when i call searchForm.createAnswerForm(). I am using openfire local server and connection is already established and just want to get the list of users. search service in…
Fallak Asad
  • 368
  • 4
  • 18
0
votes
1 answer

Android action bar search not working

I want to use my getfilter() i implemented but from action bar in order to search my listview . But dont know why the app keeps on giving nullpointer i cant understand the error as well . Here's my code calling my custom getfilter implented inside…
gandharv09
  • 257
  • 5
  • 17
0
votes
2 answers

Allow user to search and scroll to the ListView

I have a custom ListView set up in my app. I am not sure how or if it's possible to do but I want to know how can I have the Android search icon to allow user to search within the ListView. So as the search becomes relevant, the ListView scrolls to…
Si8
  • 9,141
  • 22
  • 109
  • 221
0
votes
0 answers

how to connect search on action bar and sqlite database?

I am new on developing an android app. I am already following the code in this website.I wonder how to connect search on action bar that can search data on sqlite database? This is my MainActivity.java public class MainActivity extends Activity…
0
votes
1 answer

Search in android activity

I am new in android and I am working with a search related feature. After read the tutorial I have some questions: 1 Does the SearchableActivity unique in an application? It seems that 3 steps are required to setup the search feature(from the…
hguser
  • 35,079
  • 54
  • 159
  • 293
0
votes
1 answer

QuickSearchBox not showing any search results for my app

I have enabled/checked my app in the settings for QSB. It displays suggestions correctly in the SeachView in my activity. I added android:includeInGlobalSearch="true" but still do not see any results. Are there any other things I might have…
Eric Cochran
  • 8,414
  • 5
  • 50
  • 91
0
votes
1 answer

Android Searching for Radiobuttons with similar text

I have set up a search interface for my app. How can I only display the buttons whose text contains the search string based on my search results which are returned as a string?
superuser
  • 731
  • 10
  • 28
0
votes
2 answers

Search in ActionBar - Softkeyboard Size

I am using the Serach Widget in the action bar with the following menu.xml file.
BENBUN Coder
  • 4,801
  • 7
  • 52
  • 89
0
votes
1 answer

Creating list view search

I have requirement to create search as shown below. I have created fragment tab, inside that tab I should have data to be displayed as shown below in image. [1]: https://i.stack.imgur.com/Rn988.png My java class is public class FragmentTab extends…
Sanjeev Yadav
  • 2,921
  • 7
  • 24
  • 23
0
votes
1 answer

Android: ListView + SearchView in ActionBar --> AsyncTask downloads Strings with query --> Adapter update ListView

I'm trying to do the following in Android: In my SearchActivity, I have a SearchView in the actionbar and below a ListView, where the results or a empty list should be shown. With the query of the SearchView, I will perform a search (Amazon API)…
0
votes
1 answer

Android Search not returning results after suggestion chosen

I have a simple application that just uses the hardware search key to search my database via my content provider. After getting the results from the Suggestions and clicking on one of the choices the listview screen appears and it's blank. I get…
Peter Birdsall
  • 3,159
  • 5
  • 31
  • 48
0
votes
1 answer

Search in GridView

I think the question says it all: What is the best and easiest way to search in a GridView? I want that the user can type a String in the searchbox of the actionbar and than display or hide some items (based on the search string) in the GridView.…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
0
votes
1 answer

apply a search function to a list android

I displayed data in listview coming from the database and now I want to search particular item from list by provided keyword (ignore case). I tried it but didn't get expected result . Following code I did, it's not giving error but also not fulfill…