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
1
vote
1 answer

Android Accelerometer Data Class

I have the following class to read data from accelerometer: public class Accelerometer implements SensorEventListener { private SensorManager mSensorManager; private Sensor mAccelerometer; float deltaX; float deltaY; float…
MKS
  • 736
  • 2
  • 14
  • 33
1
vote
0 answers

Search activity won't launch?

I have implemented a search system in my app, and the search bar appears, but when enter is pressed the search activity doesn't load. As well as this, the text typed into the search box is black. The action bar is also black, so is there a way to…
Liam W
  • 1,193
  • 1
  • 26
  • 46
1
vote
2 answers

Search function in android?

My array is like {"Samsung Tab","Samsung Note","Samsung Galaxy","Samsung Galaxy Pro","Nokia Lumia","Nokia 5130","Sony Xperia"} some thing like that.i have edit text type GALAXY and click the button i have GO i want to show only Samsung Galaxy ,…
Yugesh
  • 4,030
  • 9
  • 57
  • 97
1
vote
1 answer

Max of 2 columns per suggestion?

Can each search suggestion can display only a max of two columns? The SearchableDictionary sample in the Android SDK shows the word (SUGGEST_COLUMN_TEXT_1) and its definition (SUGGEST_COLUMN_TEXT_2) in response to a user typing in the search bar. …
Scott
  • 303
  • 2
  • 11
1
vote
1 answer

How to query SearchProviders like android's QSB?

I'm attempting to query all available search providers similar to how the Quick Search Box does it, to get a list of search suggestions. I'm ignoring ones I don't have permissions to read. Now, everything works for providers which return results…
barkside
  • 3,951
  • 4
  • 23
  • 32
1
vote
2 answers

Getting the search query string when using a custom search suggestions provider

I have a a custom search suggestions provider. Now, this doesn't really provide suggestion per se but search shortcuts. Here's the custom provider that I've written: public class QuickSearchProvider extends SearchRecentSuggestionsProvider { …
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
1
vote
2 answers

Android - What does question mark signify in searchable.xml?

I'm debugging SearchableDictionary sample on android 4.0. In searchable.xml, what does question mark signify in this attribute, android:searchSuggestSelection=" ?"? Here is the snippet :
1
vote
2 answers

Android SearchManager: How to set minimum number of characters to enable the Search

I am using the Android SearchManager. I defined all the needed attributes in the searchable.xml. Now, I would like to set a limit for minimum numer of characters before the user can make the search. By default, the min is 1. How can this be…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
0
votes
1 answer

Searching Android Apps using Title name

I have developed an Android Application, and launched in marked with title "FmFm Beta". But when i searched using that title name "FmFm Beta" in search box,it is not showing my Apps. But when i search using package name in url…
Asraf
  • 333
  • 1
  • 10
  • 24
0
votes
1 answer

android development java searchManager OnCancelListener fails to start activity onCancel method

I am trying to trigger an onCancel() when the user exit of the search dialog by pressing the left arrow button, but this never occurs. I tried register the cancel listener in the main activity OnCreate(), or in onViewCreated() ; also in the fragment…
Jean Bain
  • 1
  • 1
0
votes
1 answer

Why can't we not open the option menu when the searchbar of SearchBarManager is open?

I made ​​an Android application that uses that uses the SearchManager. The problem is that when the search bar is open, the menu button is not working. But in the rest of the aplications, the option button responds very well. Is there a way to run…
AP inc.
  • 156
  • 11
0
votes
1 answer

How to dismiss SearchManager after search

how I am trying to dismiss the SearchManager in an android application after I finish fetching data, how I can do that? for now I am touching the list view to hide the search bar and the…
Ahmad Kayyali
  • 8,233
  • 13
  • 49
  • 83
0
votes
1 answer

How to implement abbreviation search to SearchView

I have a Fragment containing a list of strings (company names) which works with SearchView. However, due to many companies having long names, is there a way where I can type in an abbreviation for a company name rather than having to type in the…
wbk727
  • 8,017
  • 12
  • 61
  • 125
0
votes
1 answer

Android: Making a Search Activity Single Top

I have an Activity where I used a ListView to display some data and I also want to do some filtering by using SearchView and I want to display the filtered results in the same Activity. @Override public boolean onCreateOptionsMenu(Menu menu)…
Tartar
  • 5,149
  • 16
  • 63
  • 104
0
votes
0 answers

get cursor from SeachManager

How I can get cursor related to other app db. I don't wanna use searchView or start another activity for get result of search. I should get cursor from SeachManager or PackageManager.GET_PROVIDERS (or third solution)?