Hello everybody,
I'm having some problems on showing the search UI within an Android
application. I've tried to follow the documentation found on
http://developer.android.com/reference/android/app/SearchManager.htm
and the example from API demos
http://d.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/SearchInvoke.html.
I've created a menu button that calls onSearchRequested() method when
clicked. Within this method, I've put the following:
public boolean onSearchRequested(){
Bundle appDataBundle = new Bundle();
appDataBundle.putString("demo_key", "search");
startSearch("", false, appDataBundle, false);
return true;
}
I don't know if this is correct, but I only want to test if the search
UI was shown properly. When I click the search button on the menu,
that code executes, but nothing happens, and I see a warning on the
logcat:
Window already focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@436e42a0
Am I missing something? Maybe some XML configuration or similar?
Thanks,
Mario.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---