Skip to content

Crazy blog

No money, no honey, no funny…


import ​android.app.Activity;
import​ android.os.Bundle;
import android.util.Log;

public ​class ​MainActivity ​extends ​Activity​{
​​​​String tag = “Events”;
​​​​@Override
​​​​public​void​onCreate(Bundle​savedInstanceState)​{
​​​​​​​​super.onCreate(savedInstanceState);
​​​​​​​​setContentView(R.layout.main);
​​​​​​​​Log.d(tag, “In the onCreate() event”);
}
​​​​public void onStart()
​​​​{
​​​​​​​​super.onStart();
​​​​​​​​Log.d(tag, “In the onStart() event”);
​​​​}
​​​​public void onRestart()
​​​​{
​​​​​​​​super.onRestart();
​​​​​​​​Log.d(tag, “In the onRestart() event”);
​​​​}
​​​​public void onResume()
​​​​{
​​​​​​​​super.onResume();
​​​​​​​​Log.d(tag, “In the onResume() event”);
​​​​}
​​​​public void onPause()
​​​​{
​​​​​​​​super.onPause();
​​​​​​​​Log.d(tag, “In the onPause() event”);
​​​​}
​​​​public void onStop()
​​​​{
​​​​​​​​super.onStop();
​​​​​​​​Log.d(tag, “In the onStop() event”);
​​​​}
​​​​public void onDestroy()
​​​​{
​​​​​​​​super.onDestroy();
​​​​​​​​Log.d(tag, “In the onDestroy() event”);
​​​​}
}
Advertisements

%d bloggers like this: