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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:06:44+00:00 2026-06-15T23:06:44+00:00

I have a very weird problem. It has to do with overridePendingTransition not working

  • 0

I have a very weird problem. It has to do with overridePendingTransition not working properly on only 1 activity transition (after back button is pressed) and only on the Galaxy Tab 10.1 running Honeycomb.

Here is the situtation. I have a BaseActivity class the extends Activity. I use this to add some transition changes away from android default.
I Override the finish() function like so:

@Override 
    public void finish()
    {
        super.finish();
        Log.i(StaticValues.TAG, "Calling finish in ActivityBase");
        overridePendingTransition(getAnimationId("slide_in_right") ,getAnimationId("slide_out_right"));
    }

I have to use getAnimationId as I am using unity and cannot use R.anim.slide_in_right/left

also getAnimationId is the below function for any that might want to know:

protected int getAnimationId(String animName)
{
    if(mResources == null)
    {
        mResources = this.getResources();
    }

    return mResources.getIdentifier(animName, "anim", mPackage);
}

Now here comes the weird part. This works great when calling any activity based on ActivityBase from the main Activity on my nexus S phone. It also works good when calling two activities (just info activities, links to webpages etc) when on my Galaxy Tab 10.1, but when calling the 3rd activity (an audio recorder) the transition in is ok (a slide) but when exiting (either via calling finish or back button) it looks like the orientation changes to landscape (standard home screen since this is a tablet) then loads the main activity back the way it was.

Since I gave you the history of this. Can someone tell me why this might be happening only on that one activity and only on the tablet.

public void finish()
{
    removeUnsavedRecording();
    super.finish();

}

The above is my overridden finish function in my audio recorder activity.

  • 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-15T23:06:44+00:00Added an answer on June 15, 2026 at 11:06 pm

    Ok i have fixed this error and I fixed it a weird way. My AudioRecorderActivity was a launcher class during the testing phase. For some reason the device cached the exit animation for this. (weird). So I fixed the problem by changing my ActivityBase finish() method’s overridepending to another two animations (which worked) then changed them back.

    So my only option is to believe that the app somehow cached the default animation for this activity (from when it was a launcher activity). Do not see any other explanation for this.

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

Sidebar

Related Questions

I have a very weird problem and has not been able to solve it
I have a very weird problem.. I really do hope someone has an answer
I have a very weird problem in Firefox ( version 3.5.2), and I am
I have a very weird problem with PROLOG. I have used it before, but
Hello I have a very weird problem in chrome I just cannot figure out!
I am experiencing a very weird problem: In WPF I have a tabControl which
Hi I have run into a very weird problem. I have a basic chrome
I have a very weird problem with resx based localization. At first, let me
I have a very weird problem, when storing my session in Memcached. From time
I have tried to make a longer function but it has acted very weird.

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.