package com.example.demo_application;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Log.v("METHOD", "onCreate called");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.v("METHOD", "onStart called");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.v("METHOD", "onResume called");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.v("METHOD", "onPause called");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.v("METHOD", "onStop called");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.v("METHOD", "onDestroy called");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.v("METHOD", "onRestart called");
    }

}






-- ON LOAD OF ACTIVITY FOR THE FIRST TIME
2019-08-27 15:42:40.878 10837-10837/com.example.demo_application V/METHOD: onCreate called
2019-08-27 15:42:40.893 10837-10837/com.example.demo_application V/METHOD: onStart called
2019-08-27 15:42:40.896 10837-10837/com.example.demo_application V/METHOD: onResume called

-- ON MINIMIZING THE ACTIVITY
2019-08-27 15:42:50.025 10837-10837/com.example.demo_application V/METHOD: onPause called
2019-08-27 15:42:50.064 10837-10837/com.example.demo_application V/METHOD: onStop called

-- ON RESTARTING THE ACTIVITY AFTER MINIMIZING
2019-08-27 15:42:52.878 10837-10837/com.example.demo_application V/METHOD: onRestart called
2019-08-27 15:42:52.882 10837-10837/com.example.demo_application V/METHOD: onStart called
2019-08-27 15:42:52.884 10837-10837/com.example.demo_application V/METHOD: onResume called

-- ON CLOSING THE APPLICATION
2019-08-27 15:44:32.599 10837-10837/com.example.demo_application V/METHOD: onDestroy called



Posted By  -  Karan Gupta
 
Posted On  -  Friday, September 20, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250