Hi,

I am supporting search in my app, I'd like to display a unique hint in
the search box depending on what activity is being viewed. To that
end, I have a two different searchable.xml files in my xml folder:

  searchable.xml
  searchable_activity_foo.xml

When I reference searchable.xml, everything works as expected. The
second searchable xml file has the same contents as the first, but
this does not work:

  <activity android:name=".Foo" >
      <intent-filter>
        <action android:name="android.intent.action.SEARCH" />
      </intent-filter>
      <meta-data android:name="android.app.searchable"
android:resource="@xml/searchable_activity_foo"/>
  </activity>

Pressing the search key does not display the search box. If I just
reference the first searchable instead, it works fine:

   <meta-data android:name="android.app.searchable"
android:resource="@xml/searchable"/>

Again, both have the same content. It looks like there is a dependency
on the name "searchable.xml" within android?

If we're not allowed to have searchables named anything but
searchable.xml, how do we specify different hint strings for different
activities? For example:

   ActivityFoo = "Search for apples!"
   ActivityGrok = "Search for oranges!"

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to