Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8815855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:28:48+00:00 2026-06-14T04:28:48+00:00

I posted a similar question: Android – How to disable Search button, how to

  • 0

I posted a similar question: Android – How to disable Search button, how to implement onSearchRequested()? But at that time I was not very sure what I was looking for. But this time I’ll be very specific.

What I am NOT looking for is: How I can use the dialog builder to disable the search button. This has been answered.

What I AM looking for is: How can I use the onSearchRequested() method to permanently disable the search button. Please take a look here http://www.youtube.com/watch?v=9lekcH1JAf0&feature=youtu.be for further elaboration.

In regards to this method, google states the following: “You can override this function to force global search, e.g. in response to a dedicated search key, or to block search entirely (by simply returning false)“. Here is the link: http://developer.android.com/reference/android/app/Activity.html#onSearchRequested%28%29

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:28:49+00:00Added an answer on June 14, 2026 at 4:28 am
    @Override
    public boolean onSearchRequested() {
    
        return true;//block search
    
    }
    

    if is not working have you tried this solution?:

    https://stackoverflow.com/a/5461709/1552551

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen a very similar question was posted but his solution didn't help. I'm
I know that this question is very similar to the question posted here .
I actually posted this question because I found similar questions but not a perfect
I have posted similar question previously, but this time I am providing some code
I know that I was already posted similar question but I just can't find
[I posted a similar question on serverfault.com, but had very little feedback so trying
[I just posted a similar question, but I'm not sure whether is actually got
I know i have posted a similar question before but i am not able
I know that a similar question is posted here: Android Session cookies without using
My problem is similar to question posted here . I want an Android button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.