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

The Archive Base Latest Questions

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

I am working on app that uses getIntent() to read bundled information. I would

  • 0

I am working on app that uses getIntent() to read bundled information. I would like to set one of the bundle fields to null, so that on subsequent resumes a modified intent is received, but I keep getting the same intent back from getIntent(). I notice that after the back key is pressed than a new intent is produced, but not otherwise.

 intent.getExtras().getInt("FLAG_FIELD") returns 1
 intent.getExtras().setString("FLAG_FIELD", null);

but when the Activity resumes again getInt() still returns a value instead of null. Not sure than how to clear a Int field in a bundle.

Update just tried:

intent.getExtras().putInt("FLAG_FIELD, -1); 

This also does not work. Looks like intent from getIntent() cannot be changed.

Update: onResume() gets called in the debugger 3 times in a row before the activity becomes visible? So even if I set a flag here it seems that its hard to change state because I cannot tell which resume() call is the last one before an actual display.

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

    You can override onNewIntent() and change the extras there.
    Here is the documentation for that. After this method, your onResume() will be called which I think is what you are after

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

Sidebar

Related Questions

SO I'm working on a schedule app that uses a MySQL DB. One of
currently, i am working on an app that uses Core Data. One of my
I'm working on a Facebook app that uses Facebook groups, and I'd like to
I am working on an app that uses a custom file type, I've figured
I'm working on a Node app that uses Express and SocketIO. I want to
I'm working on a small app that uses the Facebook API. What I want
I am working with a fairly old web app that uses MySQL as the
I'm working on an iOS app that uses a NSMutableURLRequest and a NSURLConnection to
I am working on a Java app that uses Spring IoC and JDBC Template
I've been working on a rails app that uses the restful authentication plugin. It

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.