0

I find three cases which will call Android activity onStart() function:

  1. Create a new activity, onStart() will follow behind onCreate
  2. Press home button bring activity background and then bring it forward, it will also call onStart(), and it will follow behind onRestart().
  3. Rotate the screen, the activity will onPause(), onStop(), onDestroy() and then onCreate() and onStart() again.

I want to do some actions in onStart() function in case1 while not do it in case2 or case3, anyone knows how to do it? Any help is appreciated! Thank you!

R. Zagórski
  • 20,020
  • 5
  • 65
  • 90
newszer
  • 440
  • 1
  • 4
  • 23

0 Answers0