From 0408675d8770fc55c40631cdfa87d79fc00f0a3c Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Tue, 12 Jan 2010 15:50:04 +0000 Subject: [PATCH] Add and expose SearchManager.getSearchableInfo() This method is needed by QuickSearchBox to get the searchability meta-data for an activity. Change-Id: I1b7a72d4dde1ff15410288cfdc33c043738be977 --- api/current.xml | 13 +++++++++++++ core/java/android/app/SearchManager.java | 19 +++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/api/current.xml b/api/current.xml index 7acbccbad2239..92540b1f97155 100644 --- a/api/current.xml +++ b/api/current.xml @@ -23739,6 +23739,19 @@ + + + + null if the activity does not + * exist, or is not searchable. + */ + public SearchableInfo getSearchableInfo(ComponentName componentName) { + try { + return mService.getSearchableInfo(componentName, false); + } catch (RemoteException ex) { + Log.e(TAG, "getSearchableInfo() failed: " + ex); + return null; + } + } + + /** + * Gets information about a searchable activity. * * @param componentName The activity to get searchable information for. * @param globalSearch If false, return information about the given activity.