ETC

onCreate

MuGrammer 2013. 4. 2. 15:08

Open Declaration

void android.app.Activity.onCreate(Bundle savedInstanceState)

protected void onCreate (Bundle savedInstanceState)

Added in API level 1

Called when the activity is starting. This is where most initialization should go: calling setContentView(int) to inflate the activity's UI, using findViewById(int) to programmatically interact with widgets in the UI, calling managedQuery(android.net.Uri, String[], String, String[], String) to retrieve cursors for data being displayed, etc.

You can call finish() from within this function, in which case onDestroy() will be immediately called without any of the rest of the activity lifecycle (onStart(), onResume(), onPause(), etc) executing.

Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.

Parameters
savedInstanceState If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in onSaveInstanceState(Bundle). Note: Otherwise it is null.

반응형

'ETC' 카테고리의 다른 글

MongoDB 오류  (0) 2013.08.20
MongoDB 개요  (0) 2013.08.18
동기와 비동기  (0) 2013.03.31
통기타관련 사이트  (0) 2013.03.03
Subversion 왜 이리 말썽이냐.  (0) 2013.01.22