1

Possible Duplicate:
Android Activity Life Cycle - difference between onPause() and OnStop()

Can anybody explain the life cycle of an activity in android? In my program or activity I called only oncreate() but I didn't call onstart() and onpause() method. Will onstart() and onpause() be called by default?

Thanks

Community
  • 1
  • 1
mohan
  • 13,035
  • 29
  • 108
  • 178

1 Answers1

6

I guess you've seen this right? Doesn't that explain all you need to know?

(Note: each of these methods, like onCreate() and onStart() and onResume() and onPause() are called automatically, you don't need to call them. You should only override these methods if you want to do something at that part of the Activity lifecycle.)

enter image description here

Sean Schulte
  • 3,955
  • 1
  • 17
  • 6
Ricky
  • 7,785
  • 2
  • 34
  • 46