Usually when you do something in the onCreate() or onStart() that shows something on top of the current Activity (such as showing another Activity). But also if the user switches applications, a phone call comes in, or anything else happens that interrupts the normal flow.
permaculture is largely about replacing oil with people. And one tiny ad:
Thread Boost - a very different sort of advertising