Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package corso.java.myblog;
- import androidx.appcompat.app.AppCompatActivity;
- import android.os.Bundle;
- import android.util.Log;
- public class MainActivity extends AppCompatActivity {
- public final static String TAG = "_MainActivity";
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- Log.i(TAG, "onCreate di MainActivity");
- }
- @Override
- protected void onRestart() {
- super.onRestart();
- Log.i(TAG, "onRestart di MainActivity");
- }
- @Override
- protected void onPause() {
- super.onPause();
- Log.i(TAG, "onPause di MainActivity");
- }
- @Override
- protected void onStart() {
- super.onStart();
- Log.i(TAG, "onStart di MainActivity");
- }
- @Override
- protected void onStop() {
- super.onStop();
- Log.i(TAG, "onStop di MainActivity");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement