package com.example.test;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.util.Log;
public class MainActivity extends Activity {
private static String TAG = "test";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.d(TAG, "onCreate");
}
public void onStop()
{
super.onStop();
Log.d(TAG, "onStop");
}
public void onResume()
{
super.onResume();
Log.d(TAG, "onResume");
}
public void onPause()
{
super.onPause();
Log.d(TAG, "onPause");
}
public void onStart()
{
super.onStart();
Log.d(TAG, "onStart");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
沒有留言:
張貼留言