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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:22:29+00:00 2026-05-24T17:22:29+00:00

Which activity method is called first in Android? For example viewWillAppear is called first

  • 0

Which activity method is called first in Android? For example viewWillAppear is called first in case of IPhone.
Also can someone tell me when I come back from an activity to previous activity, which method is called first? I don’t want to load everything again and again each time I come back to an activity.

Thanks,
Stone

  • 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-24T17:22:30+00:00Added an answer on May 24, 2026 at 5:22 pm

    When you enter your app, the life cycle flow will be like this:

    onCreate() -> onStart() -> onResume()

    Now if you are using an intent to move from your current Activity to the next Activity, these are the methods of the current activity that will be executed:

    onPause() -> onStop()

    When you come back to the same activity(e.g., using back key event), these are the methods of the current activity that will be executed:

    onStart() -> onResume()

    And when you exit your app, the flow goes like this:

    onPause() -> onStop() -> onDestroy()

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

Sidebar

Related Questions

Could someone tell me which gets called first, is it onActivityResult() or is it
Is there a method of the Activity lifecycle which is called if the user
I am new to iPhone development. I want to set an activity indicator which
I'm trying to test an Activity in android which will show a ProgressDialog and
It seems when screen orientation changes, the activity's onCreate() method is called. In my
I'm writing an Android app. I have a main method, which creates and runs
Which method of the lifecycle is called when orientation changes occur? My application executes
I created an activity which holds 3 custom components (defined in xml). 2 components
I have an activity which shows some List entries. When I click on a
I have created an activity which sends a number of notifications to status bar.

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.