package com.example.s06;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.i("LIFE","onCreate");
}
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
Log.i("LIFE","onDestroy");
super.onDestroy();
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
Log.i("LIFE","onPause");
super.onPause();
}
@Override
protected void onRestart() {
// TODO Auto-generated method stub
Log.i("LIFE","onRestart");
super.onRestart();
}
@Override
protected void onResume() {
// TODO Auto-generated method stub
Log.i("LIFE","onResume");
super.onResume();
}
@Override
protected void onStart() {
// TODO Auto-generated method stub
Log.i("LIFE","onStart");
super.onStart();
}
@Override
protected void onStop() {
// TODO Auto-generated method stub
Log.i("LIFE","onStop");
super.onStop();
}
@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;
}
}
// backkey -> destory()
// homekey -> Pause -> Stop -> Restart
'이전것 > 개발' 카테고리의 다른 글
android -> webServer (0) | 2016.07.08 |
---|---|
android -> webView (0) | 2016.07.07 |
android -> binary search game (0) | 2016.07.07 |
android -> Event Case (0) | 2016.07.07 |
android -> Event (0) | 2016.07.07 |