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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:45:30+00:00 2026-06-13T13:45:30+00:00

In the Android Activity lifecycle, when Activity.onCreate() is called after resuming (IE. not when

  • 0

In the Android Activity lifecycle, when Activity.onCreate() is called after resuming (IE. not when activity created initially or in response to screen rotation) would this code return a valid (non-null) Bundle?

public void onCreate(Bundle savedInstanceState) {
    Bundle b = this.getIntent().getExtras();
    // is b == null? (when activity is resumed)
}

I am trying to reproduce a problem that occurs when the application has not been used for a long period – when the user returns, the application crashes.

  • 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-13T13:45:32+00:00Added an answer on June 13, 2026 at 1:45 pm

    okay, so when Android kills my app and the user navigates back –
    onCreate() is fired with a >new< Activity, and the original Intent
    along with it’s associated Extras is gone; or do the Extras get
    attached to the new Intent by Android?

    I was wondering the same thing and tested this quickly in my application.

    It turns out intent extras are available when an activity is re-created after your application got killed.

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

Sidebar

Related Questions

According to the android Activity Lifecycle, the only callback guaranteed to be called (if
In an given Android activity, I would like to start a new activity for
I want to display html in android activity through web view,my screen will be
I have an Android activity called main.java and BPMClass.java class. I need to call
Going from not full screen to full screen with Android works fine. However, upon
I am very familiar with the Android activity lifecycle, but I feel like I
The Activity Lifecycle is giving me headaches. The documentation at http://developer.android.com/reference/android/app/Activity.html is so darn
I think I understood the Activity lifecycle on Android, but I still can't figure
Possible Duplicate: Difference between onCreate() and onStart()? Android Activity Life Cycle - What are
I would like to finish an activity from inside the onCreate method. When 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.