my dog learned polymorphism*
The moose likes Android and the fly likes Android Search Dialog onSearchRequested() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android Search Dialog onSearchRequested()" Watch "Android Search Dialog onSearchRequested()" New topic
Author

Android Search Dialog onSearchRequested()

Jenifer Private
Greenhorn

Joined: Dec 16, 2010
Posts: 7
Hi,

I'm trying to implement the search dialog and I am unable to display the search from an Activity.

I have my main activity defined in my manifest file, this activity shows the user a list of options they have to choose from. One of the options is a Search option.



My Search activity is defined in my manifest file like so.


Now my problem is when I call the onSearchRequested() from my MenuListActivity nothing happens.



Please help, how do I invoke the search request from my MenuActivity?



Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
What value does the call return? You're not overriding the default implementation, are you?


Ping & DNS - my free Android networking tools app
Jenifer Private
Greenhorn

Joined: Dec 16, 2010
Posts: 7
Currently im not doing anything with the search query other than logging it. My hope was to see the search menu, type in a search value and have my SearchActivity receive the query request.

Here is my SearchActivity class

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
OK. But what are the answers to my two questions? :-)
Jenifer Private
Greenhorn

Joined: Dec 16, 2010
Posts: 7
My call will return a list of product objects. No I am not overriding the default implementation.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
No, I meant the call to onSearchRequested - does it return true or false?
Jenifer Private
Greenhorn

Joined: Dec 16, 2010
Posts: 7
It returns "true"
Carlos Java Ranch
Greenhorn

Joined: Mar 01, 2011
Posts: 1
I'm stuck like you were. Did you find what the problem was?
Thanks in advance...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Android Search Dialog onSearchRequested()
 
Similar Threads
[2010-08-16 10:31:07 - HelloDatePicker] New package not yet registered with the system
Unable to obtain bluetooth adapter
Can't make SocketServer in the emulator
My Custom Intents do not work
Two or more activities