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

  • Home
  • SEARCH
  • 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 4238788
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:56:58+00:00 2026-05-21T02:56:58+00:00

I have finished the Layout exercise and wondering why they include the call to

  • 0

I have finished the Layout exercise and wondering why they include the call to populateFields() in both onCreate and onResume.

According to Activity Lifecycle “onResume” will always be performed before the Activity is shown so why not just there?

  • 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-21T02:56:59+00:00Added an answer on May 21, 2026 at 2:56 am

    I have real production code that populates fields and is only called in onResume and it works just fine.
    I thought one reason would be that maybe onResume is called after the activity is shown, but a bit of googling digs this (mostly unrelated) thread:
    http://groups.google.com/group/android-developers/browse_thread/thread/ddea4830bedf8c6c?pli=1

    Quote: onResume() is thus the last thing that happens before the UI is shown

    This is what Dianne Hackborn says so i guess we can trust her 🙂

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

Sidebar

Related Questions

I have just started using android, and have about 5 layout files finished. However,
I have a Map activity in a fairly complex layout. As such, I can't
I have an Activity which scrapes a webpage in a CustomLoader. When loader finished
i'm trying to build a basic layout for each activity. the layout have an
I have finished developing a big and heavy app. It is universal (for iPhone
I have finished the development of my app which uses Google Maps. During the
*Hey , I have finished developing my app In my iphone apps I have
Age old question! When you have finished developing and testing your ASP.Net web application,
I have just finished creating an API where the requests from the API are
I have nearly finished a free spellchecker library for Windows Mobile, and there are

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.