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
5 answers

How to let SearchView keep its last query content after reopen?

When using search view, I have a requirement from customer that they want to retain the search content after reopen the search view. My Search view is on a list view and do a real timing filtering based on what user input into the search box. When…
1
vote
0 answers

java.lang.NullPointerException SearchView OnCreateOptionsMenu

I am trying to make my app work for Gingerbread (API 10). My app crashes when I click on the menu with following error - java.lang.NullPointerException at com.sample.appdemo.onCreateOptionsMenu(AppDemoListActivity.java:83) My app worked…
1
vote
2 answers

Receive search from Google Now

So I tried to implement this - The fastest route between voice search and your app What i have so far is... In manifest:
1
vote
0 answers

Back Button On Fragment ActionBar Search

I have an android search in action bar (just standard one). The way I made it working is, I created SearchQueryRouter Activity, which receives search query and starts the MainActivity - where all my Fragments reside replacing each other. Everything…
1
vote
1 answer

Implement SearchView in Action Bar in Android

I have implemented search in action bar, but I am getting 0 results always, even though the text is available. Not sure where I am going wrong? Here is my piece of code that I have tried: ArrayList stateList = new ArrayList(); …
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
1
vote
1 answer

How to apply the search intent filter and android.app.searchable to all activities?

I have quite a few activities in my android app and need to implement an ActionBar with a SearchView. I initially just added the following lines to my SearchActivity:
John M
  • 1,469
  • 17
  • 41
1
vote
1 answer

Search in Android not working

I have been struggling with search feature in android for days. Unable to pinpoint the bug. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_exclude_list); …
curious_coder
  • 2,392
  • 4
  • 25
  • 44
1
vote
0 answers

How to get text from Search Suggestion onClick

I just implemented search with custom suggestion and I am still wondering, how to get the text of the clicked suggestion in another Activity. I cant do that with intent.getData().getLastPathSegment() because i am passing another text with this…
1
vote
0 answers

Android - SearchView deletes typed letters

I don't understand how, but it was working fine up till yesterday... now I changed some things around and happens that, whenever I type something in the Search box of my app on the top menu, every letter I type gets deleted immediately. If I paste a…
1
vote
2 answers

Android Custom Search Suggestions: Query Two Parameters

SQLite Structure Table: Class Column1: classID (primary key) Column2: className Table: Students Column1: studentID (primary key) Column2: classID (foreign key) Column3: studentName Question I have followed the Adding Custom Suggestions…
1
vote
0 answers

Android SearchView: redirect to another search activity

I have a SearchView (support v7) with custom suggestions. Everything works fine. But now I want to redirect to another search activity depending on the selected suggestion. The custom suggestion table contains suggestions and search matches. And…
Ralph Bergmann
  • 3,015
  • 4
  • 30
  • 61
1
vote
0 answers

A simple image search app

I want to develop a simple application, that will Searches images with keyword Browses the images Saves the images if i can do it with Google, it would be better. so far i found this after Googling: try { Intent intent = new…
Shoshi
  • 2,254
  • 1
  • 29
  • 43
1
vote
1 answer

Getting Result from Activity Started with SearchManager

I am following this relatively simple tutorial on how to manually start a SearchableActivity so that I can get a result back from it. He is basically setting up the base Activity (Activity A) as the searchable activity (in the manifest), so that it…
1
vote
1 answer

Android searchmanager triggersearch giving null pointer exception

Here is the code getting searchmanagerinstance and calling trigger search: The same works fine with startsearch call not with triggersearch String searchQuery = "dollar in rupees\n"; SearchManager s = (SearchManager)…
Arjun Ramesh
  • 189
  • 1
  • 12
1
vote
1 answer

search suggest query limit = 50 cursor does not work on text change

I want to take suggestions from my SQLite Database with content provider. Actually i m able to read database. But suggestions does not appear if i do not submit my query. I want to take suggestions when search query changes. I get below message in…