Android since 1.0 has included a search API that could bring up an app-specific search activity while within that app. 1.5 introduced global search that apps could participate in outside of their app. I don't understand what you mean by "a search activity available in 1.5" -- there is global search, where you supply results but not the UI, which is available starting in 1.6; and there is the traditional local app search, where the app supplies the UI, so there can be no "standard" activity for that, since it is entirely app-specific.
You don't need to capture the search key. Use the search APIs to declare your search activity in your manifest and let the system do the right thing. On Tue, Dec 8, 2009 at 8:20 AM, theSmith <[email protected]> wrote: > Should we just create our own search activity or is there one > available in 1.5? As far as I know the global search feature is only > 1.6+. > > When creating our own activity, how would we capture the search key > (hard) being pressed on a device? > > -Chris > > On Dec 7, 6:25 pm, Dianne Hackborn <[email protected]> wrote: > > On Mon, Dec 7, 2009 at 1:20 PM, AJ <[email protected]> wrote: > > > 1) drawable verses the new drawable-* ... if I don't have an icon in > > > drawable.png will my application be icon-less in 1.5? Do I need to > > > copy one of the new icons in there? If so, which one? > > > > If you want to run on pre-1.6 platforms, I would suggest putting your > medium > > density bitmaps in drawable/* instead of drawable-mdpi/*. 1.6 and later > > will assume that these are medium density. > > > > > 2) search ... how does the "SEARCH" activity get raised for an > > > application on SDK 1.5 devices (which don't appear to have a hardware > > > search button.) Do I need to add a menu option and raise SEARCH as a > > > sub-activity? [Note: I am 100% confused by search button on all > > > android versions 'cos what I read says SDK 2.0 copes with virtual > > > buttons, yet those devices (in emulator) seem to have hardware ones. > > > What am I missing?] > > > > Whether or not there is a search button is really a device thing, and not > a > > platform version thing. For example, the G1 has a search key on its hard > > keyboard, and you can assume there will be devices running 2.0 and later > > that don't have a search key. If search is important for your app, you > will > > want to have another mechanism to get to it -- often a menu item. > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see > and > > answer them. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

