package com.example.testactivity;

import androidx.appcompat.app.AppCompatActivity;

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

public class MainActivity extends AppCompatActivity {
String tag="日志信息";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.i(tag,"MainActivity onCreate()");
    }
    protected void onStart(){
        super.onStart();
        Log.i(tag,"MainActivity onStart()");
    }
    protected void onResume(){
        super.onResume();
        Log.i(tag,"MainActivity onResume()");
    }
    protected void onPause(){
        super.onPause();
        Log.i(tag,"MainActivity onPause()");
    }
    protected void onStop(){
        super.onStop();
        Log.i(tag,"MainActivity onStop()");
    }
    protected void onDestroy(){
        super.onDestroy();
        Log.i(tag,"MainActivity onDestroy()");
    }
    protected void onRestart(){
        super.onRestart();
        Log.i(tag,"MainActivity onRestart()");
    }
}