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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:51:51+00:00 2026-05-24T03:51:51+00:00

Possible Duplicate: Android Activity Life Cycle – difference between onPause() and OnStop() I was

  • 0

Possible Duplicate:
Android Activity Life Cycle – difference between onPause() and OnStop()

I was wondering – what is the difference between onCreate() and onStart() methods?

I think that onStart() is a redundant method. onCreate() will ALWAYS be called (At least in my last two projects).

Can any one explain the difference?

  • 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-24T03:51:52+00:00Added an answer on May 24, 2026 at 3:51 am

    Take a look at the life cycle of Activity.

    The following image and documentation excerpt are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

    enter image description here

    Where

    ***onCreate()***
    

    Called when the activity is first created. This is where you should do all of your normal static set up: create views, bind data to lists, etc. This method also provides you with a Bundle containing the activity’s previously frozen state, if there was one.
    Always followed by onStart().

    ***onStart()***
    

    Called when the activity is becoming visible to the user.
    Followed by onResume() if the activity comes to the foreground, or onStop() if it becomes hidden.

    And you can write your simple class to take a look when these methods call. The following code is adapted and simplified from the example and demo application found in Lifecycle Methods in Details, which is a very good article to understand the life cycle.

    public class TestActivity extends Activity {
        /** Called when the activity is first created. */
    
        private final static String TAG = "TestActivity";
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            Log.i(TAG, "On Create .....");
        }
        /* (non-Javadoc)
        * @see android.app.Activity#onDestroy()
        */
        @Override
        protected void onDestroy() { 
            super.onDestroy();
            Log.i(TAG, "On Destroy .....");
        }
        /* (non-Javadoc)
        * @see android.app.Activity#onPause()
        */
        @Override
        protected void onPause() { 
            super.onPause();
            Log.i(TAG, "On Pause .....");
        }
    
        /* (non-Javadoc)
        * @see android.app.Activity#onRestart()
        */
        @Override
        protected void onRestart() {
            super.onRestart();
            Log.i(TAG, "On Restart .....");
        }
    
        /* (non-Javadoc)
        * @see android.app.Activity#onResume()
        */
        @Override
        protected void onResume() {
            super.onResume();
            Log.i(TAG, "On Resume .....");
        }
    
        /* (non-Javadoc)
        * @see android.app.Activity#onStart()
        */
        @Override
        protected void onStart() {
            super.onStart();
            Log.i(TAG, "On Start .....");
        }
        /* (non-Javadoc)
        * @see android.app.Activity#onStop()
        */
        @Override
        protected void onStop() {
            super.onStop();
            Log.i(TAG, "On Stop .....");
        }
    }
    

    Link to android documentation Activity for details.

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

Sidebar

Related Questions

Possible Duplicate: Android Activity Life Cycle - difference between onPause() and OnStop() Can anybody
Possible Duplicate: Android Activity Life Cycle - difference between onPause() and OnStop() What is
Possible Duplicate: Double Tap -> Zoom on Android MapView? I have an Activity that
Possible Duplicate: How to display progress dialog before starting an activity in Android? this
Possible Duplicate: Disable back button in android in my app to from one activity
Possible Duplicate: How to pass a value from one Activity to another in Android?
Possible Duplicate: Android ListView, start new activity Hey can someone tell me how I
Possible Duplicate: Intent to launch the clock application on android I have a widget
Possible Duplicate: Seemingly useless debugging environment for Android I've obviously been spoiled by Visual
Possible Duplicate: Android: How to resize a custom view programmatically? What's the best way

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.