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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:25:36+00:00 2026-06-06T06:25:36+00:00

My design requires that I kill the get_configuration activity (Activity1) once the second_activity is

  • 0

My design requires that I kill the get_configuration activity (Activity1) once the second_activity is running. However, when I hit the BACK button from the second_activity (Activity2), I get the following error:

“E/ActivityThread(2156): Activity com.test.Test has leaked IntentReceiver that was originally registered here. Are you missing a call to unregisterReceiver()?”

I’m new to Android, all my research mentions unregistering intent receivers – but I’m not using an intent receiver, just the intent to pass the bundle to the second_activity.

How do I unregister my intent from a destroyed activity? Here is the code I am using:-

Activity1 class:

SetupActivity() {
   ...
     Intent intent = new Intent(getApplicationContext(), Activity2.class);
     intent.putExtra("width", intWidth);
     intent.putExtra("height", intHeight);
     finish(); // kill this activity
     startActivity(intent); // start Activity2

}

Activity2 class:

OnCreate() {
 Bundle extras = getIntent().getExtras();
 if (extras != null) {
     width = extras.getInt("width");
     height = extras.getInt("height");
  }
}
  • 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-06T06:25:37+00:00Added an answer on June 6, 2026 at 6:25 am

    You have a Java class. It is named com.test.Test. In there, you have called registerReceiver(), yet failed to call unregisterReceiver() before it was destroyed.

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

Sidebar

Related Questions

I have a problem here that requires to design a data structure that takes
Good day, I have a project that requires that I share the design portion
I'm looking to design an application that will require some deep control over IP
By design I'm expecting a DuplicateKeyExeception from time to time. Is it possible to
Was: Design by contract: predict methods needed, discipline yourself and deal with code that
A design question: I'd like to build a Windows service that executes different commands
I have a project that requires us to maintain several MySQL databases on multiple
I am working on an android application that requires multiple views which will overlap
I have a site which has an area that requires authentication. Right now I
I am planning a system that requires collaboration between many local Rails apps. The

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.