import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class FfffActivity extends Activity {
String t="ms event";
public void onCreate(Bundle savedInstanceState)
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class FfffActivity extends Activity {
String t="ms event";
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.d(t,"in the onCreate state");
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.d(t,"in the onCreate state");
}
public void onStart() {
super.onStart();
Log.d(t,"in the onStart state");
}
public void onRestart() {
super.onRestart();
Log.d(t,"in the onRetart state");
}
public void onResume() {
super.onResume();
Log.d(t,"in the onResume state");
}
public void onPause() {
super.onPause();
Log.d(t,"in the onPause state");
}
public void onStop() {
super.onStop();
Log.d(t,"in the onStop state");
}
public void onDestroy() {
super.onDestroy();
Log.d(t,"in the onDestroy state");
}
}
Press on back button,home button,Call button And see the changes in Log cat