omega
omega

Reputation: 43893

How to call an event in android when activity resumes but not when activity starts

In android, I want to use onResume(), but I don't want it to fire when the activity is created. I want it to fire every other time it resumes. Is there such an event for that?

Thanks

Upvotes: 0

Views: 86

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

No, sorry. There is onRestart(), which behaves as you want, but as a replacement for onStart(), not onResume(). The difference between onStart() and onResume() may not be important for your situation, though, in which case you could consider onRestart().

Upvotes: 1

Related Questions