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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:49:55+00:00 2026-06-01T22:49:55+00:00

Thanks for reading. I am facing a problem where when I start a new

  • 0

Thanks for reading.

I am facing a problem where when I start a new Activity in my TabHost, the new Activity only shows up for a few seconds before returning to the default Activity in that Tab.

I am using the TabHost for laying out 5 tabs in my app. In one of the tabs, I start a new Activity as follows:


Intent intent = new Intent(this, NewActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
LocalActivityManager manager = MyActivityGroup.ActivityGroup.getLocalActivityManager();
MyActivityGroup.ActivityGroup.replaceView(manager.startActivity("NewActivity", intent).getDecorView() );

In this NewActivitys’ onCreate(), I am calling a speech recognition libraries’ startRecord() method which is implemented as follows:


private void startRecognition() {
        try {
             recognizer.startRecord(new SpeechRecognizerEvent() {
                 @Override
                 public void onRecognitionComplete(SpeechResult result) {
                           //get result data
                 }
}

All I know is there is a SpeechFrameworkActivity associated with this library in the AndroidManifest.xml.

If I comment out calling the startRecord() method, the NewActivity does not disappear and continues to show.

I am just clueless about what is going wrong.

From the logs, all I see is this one line:


09-21 21:16:44.860: DEBUG/PhoneWindow(6737): couldn't save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView@4794d9b8 has no id.

I tried using onConfigurationChanged() in my MainTabActivity but that didn’t solve the problem.

Please help! Any help/pointers would be great appreciated!

  • 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-01T22:49:56+00:00Added an answer on June 1, 2026 at 10:49 pm

    this may happen due to less memory
    in my case i clear the memory every time before using
    and it work may be in ur case it works
    or use system.gc
    or clear buffer just try this if it helps u .

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

Sidebar

Related Questions

Thanks for reading. I'm a bit new to jQuery, and am trying to make
Before anything, thanks for reading! I'm developing an application in C++ and I want
I am facing a problem with python since a few days. I am a
Thanks for reading and for your thoughts; this is a hairy problem, so I
I am facing problem for reading xml file using javascript. It works fine in
Thanks for reading my question! I have a problem with customizing a DataGrid RowGroupHeader,
Thanks for reading this. I am dynamically generating some data which includes a select
Thanks for reading this. I have markup similar to what is below. Using the
Thanks for reading this I thought I could use find(), but couldn't make it
Thanks to reading about error handling on StackOverflow , I discovered Mz-Tools. However, I

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.