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 3429734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:07:06+00:00 2026-05-18T07:07:06+00:00

So I have a default searchable Activity in my app, and if I press

  • 0

So I have a default searchable Activity in my app, and if I press the search button in simples activities it works. But when I’m in a tab where the content is an ActivityGroup, and not an Activity, the app crashes.

08-19 17:18:23.438: ERROR/AndroidRuntime(9078): Uncaught handler: thread main exiting due to uncaught exception
08-19 17:18:23.458: ERROR/AndroidRuntime(9078): java.lang.IllegalArgumentException: no ident
08-19 17:18:23.458: ERROR/AndroidRuntime(9078):     at android.app.Activity.ensureSearchManager(Activity.java:3499)
08-19 17:18:23.458: ERROR/AndroidRuntime(9078):     at android.app.Activity.startSearch(Activity.java:2648)
08-19 17:18:23.458: ERROR/AndroidRuntime(9078):     at android.app.Activity.onSearchRequested(Activity.java:2612)
...

Even if I add this code in my activityGroup, I’m still crashing :

@Override
  public boolean onSearchRequested() {return false;}
  • 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-05-18T07:07:06+00:00Added an answer on May 18, 2026 at 7:07 am

    Ok sorry that I didn’t answer sooner.

    So yes, the problem is resolved, and I think that it came from the ActivityGroup, where the onSearchRequested() wasn’t overrided, but took the event anyway.

    So the solution was this :

    @Override
    public boolean onSearchRequested() {
        return mLocalActivityManager.getCurrentActivity().onSearchRequested();
    }
    

    The mLocalActivityManager is the LocalActivityManager that starts the different activities…

    Then you have to override the onSearchRequested() in each Activity that is displayaed in the group, and eventually just return false there, if you don’t want the search dialog.

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

Sidebar

Related Questions

I have an activity handling search ( ACTIVITY_1 ), which works perfectly when I
I have two different Search activities implemented with SearchManager in my app. One is
I want to be able to have default text like Enter content here... appear
I have a little app that have by default youtube as homepage. You can
I have a searchable tableview, but would like to only display the number of
I have those models User, Developer, App, Permission A User can have Default Permision
I want to validate my registration form but i have default values for every
i have default.aspx and index.html. I uploaded both to the server, but i want
Say I have default content on the left side of my application, which is
i have two activities within an ActivityGroup, one ProvinceActivity and another CityActivity. so code:

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.