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

Suggestions on search in android?

i can implement the QSB on my app using onSearchRequested() method.i have 4 column in my table. when i was type in the QSB. it will give some suggestions on the Suggestion window. how to do that? searchable dictionary example shows the dictionary…
Praveen
  • 90,477
  • 74
  • 177
  • 219
0
votes
1 answer

Does the Quick Search Box search the database in Android? how?

i have an database with the values of latitude and longitude. i would need to search those values depends on the user input. does the quick search box can search only the database value with the type-to-search feature. Else i want to put a separate…
Praveen
  • 90,477
  • 74
  • 177
  • 219
0
votes
1 answer

Android show SearchView result ListView above ViewPager

Hi i want to search users in my app via SearchView widget. I want to show suggested users name in a ListView above a ViewPager of same XML layout when SearchWidget is active. I used following xml
0
votes
1 answer

android issues updating Listview due to filtering, with a custom base adapter

I'm facing issue by implementing a search mechanism on a ListView in Android. I currently display a list of companies in a ListView The ListView is linked to a custom BaseAdapter that ref a data model The data model handle the data gathering thru…
0
votes
1 answer

NullPointer Exception implementing SearchView for Custom BaseAdapter

I have a listview of installed apps with a custom baseadapter class. I am attempting to add the searchview function when I press the search icon so an edittext pops up to filter which apps I want to search for. I am aiming for something like…
0
votes
1 answer

Hide, unhide ActionBar icons with Search Widget

A common pattern I see in many apps that provide some search functionality is to have the search widget clear the other menu icons off of the ActionBar. This works for me right now just by using ifRoom for showAsAction in my menu items. I'd like to…
settheline
  • 3,333
  • 8
  • 33
  • 65
0
votes
1 answer

IllegalStateException orientation change while performing filter query serach

I have implemented search in a listview using searchview and setFilterQueryProvider on custom SimpleCursorAdapter. inside a onActivityCreated of my fragment, i am setting filter by following code myAdapter.setFilterQueryProvider(new…
Hunt
  • 8,215
  • 28
  • 116
  • 256
0
votes
1 answer

Action Bar on Android is a Singleton?

When we are working with the Search Widget in Android and create multiple times, maybe, search widgets in order to know what was written... does the action bar works like a layer? Is ever the same action bar no matter in which activity I am?
0
votes
1 answer

Google Search for Android

I am trying to put a simple Google Search in my app. I found this code but it's not exactly what I am searching for. Below the search comes from a given url. String url = "http://www.google.com"; Intent i = new…
Tzeik
  • 15
  • 6
0
votes
1 answer

searchSuggestThreshold attribute doesn't work : ContentProvider triggered on every typed character

I have a search widget within the action bar of my main activity. I would like to display suggestions after the user type at least 2 characters. I'm aware this can be done by setting android:searchSuggestThreshold="2", but it doesn't seem to work…
0
votes
1 answer

can't implement SearchView.OnQueryTextListener in activity

I want to add search functionally in my activity so i tried to implement SearchView.OnQueryTextListener but it's showing error that create interface...... any other way to add search in action bar..please link me... public class setting_1 extends…
bhavdip
  • 189
  • 5
  • 20
0
votes
0 answers

Android SUGGEST_COLUMN_ICON_1 dimensions of bitmap and how to get from netwok

In my search suggestions drop down in my app, I want to display a thumbnail next to the search suggestion (like Google Play does). This thumbnail will be downloaded from the internet. Currently, I am downloading the image as a bitmap, multiplying…
0
votes
2 answers

Using SearchManager's SUGGEST_COLUMN_ICON_1 to display a local file

I'm implementing my own SearchRecentSuggestionsProvider and everything's working except one thing: I can't get the device search to display icons for the results. I'd like to display images from my application's data folder (located at…
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
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 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