onCreate called despite using FLAG_ACTIVITY_REORDER_TO_FRONT
问题 I have 2 activities (A and B) and they have 2 buttons to switch between. A oncreate B oncreate A oncreate A onresume what I wanted to do is after sending intent from B to A oncreate should not be called but at this point it does. To overcome that I found FLAG_ACTIVITY_REORDER_TO_FRONT (from here) and thought it could called only onresume but it didn't. 回答1: FLAG_ACTIVITY_REORDER_TO_FRONT does exactly what you think it should do. However, if you start ActivityA and then ActivityA starts