Skip to content

Instantly share code, notes, and snippets.

@ericksprengel
Created September 22, 2016 23:02
Show Gist options
  • Save ericksprengel/1c7c4ab8d1e6bb9fdbc4f10c839b036e to your computer and use it in GitHub Desktop.
Save ericksprengel/1c7c4ab8d1e6bb9fdbc4f10c839b036e to your computer and use it in GitHub Desktop.
Android - Aula 02 - Tópico 02 - Activity
package br.com.ericksprengel.aula04;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class AndroidA02T02Activity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onCreate");
setContentView(R.layout.activity_main);
}
@Override
public void onStart() {
super.onStart();
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onStart");
}
@Override
public void onResume() {
super.onStart();
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onResume");
}
@Override
public void onPause() {
super.onStart();
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onPause");
}
@Override
public void onStop() {
super.onStop();
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onStop");
}
@Override
public void onRestart() {
super.onStop();
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onRestart");
}
@Override
public void onDestroy() {
super.onStop();
Log.d(BuildConfig.LOG_TAG, "AndroidA02T02Activity: onDestroy");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment