Why do OnCreate should be called only once on the start of Activity?
I would like to know, why OnCreate() is called only once at the start of an activity? Can we call OnCreate() more than once in the same activity? If yes, than how can we call it? can anyone give an example? Thanks a lot!!! Why would you want to called it again? unless the activity is reconstructed, which is called by system. You cannot call OnCreate manually , it is the same reason why you won't call setContentView() twice. as docs: onCreate(Bundle) is where you initialize your activity. Most importantly, here you will usually call setContentView(int) with a layout resource defining your UI,