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
4
votes
1 answer

SearchView in Tabs ViewPager

I am following this tutorial. I want to add a SearchView in TabsViewpager as link: Picture 1 http://www.uphinh.vn/image/stream/1386201.png But my app ,SearchView not in TabsViewpager as link:Picture 2 http://www.uphinh.vn/image/stream/1386202.png I…
4
votes
3 answers

Android Searchable Configuration not getting attached to SearchView

I'm currently working on adding search ability to my app but I'm facing some problems. First of all I'd just like to clear out that I don't want to create a search activity, I just want to use the Action Bar SearchView and press on suggestions to…
SweSnow
  • 17,504
  • 10
  • 36
  • 49
4
votes
1 answer

How to retrieve search suggestion from google places?

I need to have the list of suggestions of cities/streets/villages while I am typing into the search bar. I found out that I have to implement contentProvider and I make it. Now, for everything I type, I get the same result: "Search Result" While…
Csabi
  • 3,097
  • 17
  • 59
  • 107
4
votes
1 answer

Custom Search Suggestions in Search Widget

I am using a search widget in my application.I want to provide the search suggestions with the person names in the server. How to provide custom search suggestions where the names are retrieved from a webservice? What are the steps i need to follow…
Raneez Ahmed
  • 3,808
  • 3
  • 35
  • 58
4
votes
2 answers

Search Interface opens a new Activity when search

I am trying to use the Search Manager from Android. In fact, I have an activity where I am calling onSearchRequested() Then, I am using in the same activity this function to get the search string: // Get the intent, verify the action and get the…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
3
votes
1 answer

Call to method onSearchRequested() in the same activity that handles search requests causes duplication in activity stack

I have an activity that handles search requests with the SearchManager and it's working just fine. Let's call this activity MySearchActivity.java. The problem is that within this activity, I have a button that invokes the search request dialog…
dell116
  • 5,835
  • 9
  • 52
  • 70
3
votes
2 answers

Android Styling/Theming of just Search Dialog

tl;dr: White text style in app theme being picked up by search dialog, making search text invisible. I'm struggling mightily with what seems like a trivial issue. My app is using a dark background, and I've tweaked the text color to be brighter than…
Mark Phillip
  • 1,453
  • 17
  • 22
3
votes
2 answers

Perform search on Android within the same activity

I'm trying to integrate search in my app but I'm being blocked by one issue. My activity is declared like this and is located inside of TabActivity.
Kostia Dombrovsky
  • 1,647
  • 2
  • 18
  • 29
3
votes
1 answer

Android search onCancel() listener not being called

In the onCreate() method of my main Activity, I setup a callback to the Activity's onCancel() method to be called (I believe) when the search dialog is canceled by the user without issuing a search. Here's my registration code: SearchManager…
mharper
  • 3,212
  • 1
  • 23
  • 23
3
votes
3 answers

android : adding SearchView inside a Custom ListView with Custom Adapter

I'm creating a an app with 3 tab fragments . this is one of the fragments,, the data is shown in list-view. Im facing trouble in adding a search filter to the list-view .. I have added search view to this fragment and list and everything working…
3
votes
2 answers

Is it possible to pass search context data using the Search Widget (SearchView) only?

According to the official documentation, there are two ways of providing a search interface: using either the search dialog or a SearchView widget. I'd like to pay attention to passing search context data using these two ways. So, the documentation…
3
votes
0 answers

Update cursor returned by ContentProvider.query() for android TV search

I'm implementing search in my app and using a ContentProvider to provide search suggestions for that. I'm doing everything like here: https://developer.android.com/training/tv/discovery/searchable.html My implementation is based on…
3
votes
0 answers

What is the 'SearchableActivity.JARGON' boolean variable in Android?

@Override public boolean onSearchRequested() { Bundle appData = new Bundle(); appData.putBoolean(SearchableActivity.JARGON, true); startSearch(null, false, appData, false); return true; } I have taken this snippet form this…
Solace
  • 8,612
  • 22
  • 95
  • 183
3
votes
0 answers

Search Widget Full Width

I'm targetting API level 8+ and I'd like to have a full width search view on top of the action bar, expanded by default and not collapsable. Here's what I did: I've an ActionBar activity where I set inside onCreate: final ActionBar actionBar =…
3
votes
1 answer

Search on action bar does not call search activity

I am trying to make a search bar and I followed the tutorial on http://developer.android.com/training/search/setup.html. It does not work and SearchResultsActivity does not get called, so I immediately found the following question: Search widget on…
VolenD
  • 3,592
  • 18
  • 23
1 2
3
10 11