Slips

Code Create a Application which shows Life Cycle of Activity. package com.example.lifecycledemo; import android.os.Bundle; import android.util.Log; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private static final String TAG = "LifecycleDemo"; // onCreate() is called when the activity is first created @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Log.d(TAG, "onCreate() called"); } // onStart() is called when the activity becomes visible to the user @Override protected void onStart() { super.onStart(); Log.d(TAG, "onStart() called"); } // onResume() is called when ...