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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:35:07+00:00 2026-05-25T19:35:07+00:00

I am relaunching my HomeActivity and setting an extra relaunchstatus in the Intent. In

  • 0

I am relaunching my HomeActivity and setting an extra “relaunchstatus” in the Intent. In Activity’s onCreate() method I check this value, if present, show some alert.

The launchmode for this activity is android:launchmode="singleTask".

The issue comes after the user sees this alert and close it and again close the activity by pressing Back button. Now if he starts it from Recent list of apps by long pressing ‘Home’ button, then the same intent which had an extra “relaunchstatus” in it is used and again the alert comes.

This keeps on as long as user comes from the recent items (OK, may be recent launch apps uses the same intent which had the extra “relaunchstatus” set in it).

So I tried to remove this extra by handling BACK_KEY press just before the activity finishes itself, using getIntent().removeExtra(“relaunchstatus”) , still this extra exists in the new launch from Recent items.

However this is not the case if I start the app from launcher menu icon.

Update: So I guess Activity’s getIntent() will give you a copy of Intent that launched it, so its not like a reference to same object on which changes will be permanent. If this is the case, then we will need to do it from current device GUI (like HTC Sense etc. ) , whose recent items are bind to that intent , which may not be possible ?

  • 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-25T19:35:07+00:00Added an answer on May 25, 2026 at 7:35 pm

    This cannot be changed, infact no Intent exists as per post by Dianne Hackborn here :
    Android Google Groups

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

Sidebar

Related Questions

This question concerns memory in Android. My method: I have two activites, A and
Is it possible to switch workspaces in Eclipse without relaunching the application? I want
I've seen this all over the place on stack overflow, but everyone else's solution
I'm developing Scala code using Eclipse, often when I run tests I get this
I have three activities A->B->C.when i am in B activity i click the home
First off, this is not aimed at perpetuating bloatware and other bad practices. I
I have created a sort of CMS with GWT. This CMS has several widgets
My app bounces the user out of the app into safari to do some
I'm really struggling with this regex. We're launching a new version of our groups
I'm working on an application that currently has two activites, a log in activity

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.