Questions tagged [android-searchmanager]

Search Manager Class Provides access to the system search services.

Search Manager class provides access to the system search services.

In practice, you won't interact with this class directly, as search services are provided through methods in Activity and the ACTION_SEARCH Intent. If you do require direct access to the SearchManager, do not instantiate this class directly. Instead, retrieve it through context.getSystemService(Context.SEARCH_SERVICE).

Useful links

154 questions
0
votes
1 answer

Applying Word Stemming in SearchView for fetch data from Firebase database

I need to fetch list of users from Firebase database using SeachView or search dialog and I think word stemming will be best for my app. Not asking for code but please tell me the alorigthm for it.
0
votes
1 answer

How to use SearchManager in local app?

Hi all, I have a activity which have a listview. I need to refine the listview by people's inputs. I have tried to implement it by following the topic http://developer.android.com/guide/topics/search/search-dialog.html. but the problem is that I can…
ThinkChris
  • 1,169
  • 2
  • 15
  • 38
0
votes
2 answers

SearchView wont start SearchActivity, constantly crashing

I want to open SearchResultsActivity when user enters a search query but I have been trying to setup search view in my activity from past 1 day without any success. I have seen lot of stackoverflow questions and tutorials. None of the solutions work…
0
votes
1 answer

How do I perform a search using the App bar?

So I'm trying to perform a search using the app bar and passing the query to an attribute I call "searchRequest". I want to display the result. I have been following this guide in the documentation and tried But then I to no avail. As I have…
0
votes
1 answer

android: how to position SearchManager somewhere around 60dip from top?

I have implemented android's searchmanager using onSearchRequested(). This works fine but it shows itself on top of the page. How can I adjust the layout to just around 60dip from top? many thanks,
lirma
  • 1
0
votes
1 answer

Android Search Filter using Action Bar

I have implemented a listView Using Volley Library From this tutorial Custom Volley ListView After this I have implemented SearchView and search Result Activity like this BaseActivity import android.app.AlertDialog; import…
0
votes
1 answer

Set dropdown text color of SearchView with SearchManager

My SearchView has a SearchManager as follows final SearchView searchView = (SearchView) toolbar.findViewById(R.id.search_view); searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default SearchManager…
0
votes
1 answer

How to display Android SearchView suggestions in a customized view

Amazon app search suggestions The Search suggestions in Amazon app has rows that span the full width of the display, and have an upward pointing arrow on the right and a cross mark on the left. I am getting default row look upon using Android…
0
votes
1 answer

how to get EXTRA_DATA from intent that return Search Suggestions results

I can get the data for this SearchManager.SUGGEST_COLUMN_INTENT_DATA, by using: intent.getSataString(); My question is, how can I get data for this: SearchManager.SUGGEST_COLUMN_INTENT_EXTRA_DATA The context of this question is this: private final…
0
votes
1 answer

Post Intent action from widget provider

I want to build a search widget. Clicking on the widget should open search activity inside my app. Here is the code from widget provider's onUpdate(). public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { …
0
votes
1 answer

Search Box on Home Screen

I have used SearchManager and it provides search key only when app is launched. Is there a way to put a text box on the home screen/wallpaper and invoke activity when user presses enter?
ankitjaininfo
  • 11,961
  • 7
  • 52
  • 75
0
votes
2 answers

getSearchableInfo returns NULL

After trying ALL of the solutions in stackoverflow about this problem, I decided to ask it here. I'm trying to implement search bar in my Action bar. I'm using AppCompatActivity and imported android.support.v7.widget.SearchView. For the record, I'm…
TheUnreal
  • 23,434
  • 46
  • 157
  • 277
0
votes
0 answers

Search with pagination in android TV

I have got nexus player and would like to add new row in search with my own suggesstions. I'm downloading theme from website (more than 1 million items), so I'm doing everything from here:…
0
votes
1 answer

how to load loactions in searchView in android studio?

I am new to map concept in android . I would like to get locations using GPS/Geo Coding and add as a suggestion for search view ,when clicking the suggestion map will show the exact location ? friends help me how do i do this ?
0
votes
1 answer

SearchRecentSuggestionsProvider DATABASE_MODE_2LINES configures Recent Suggestions to add a second line of text. Where does that text come from?

From this developer guide, The database mode must include DATABASE_MODE_QUERIES and can optionally include DATABASE_MODE_2LINES, which adds another column to the suggestions table that allows you to provide a second line of text with each…