android - How to prevent a code from being executed in onResume when application starts? -


i have piece of code in onresume method want executed when activity returns activity started activity. there flag or parameter can use find out if activity newly started or returned one?

you can use onactivityresult callback. it's being called if user finishes activity have started using startactivityforresult(intent, int)


Comments