I want to create an activity that simply displays a Toast (or speaks a message) then quits. Following the advice in https://www.quora.com/Is-it-possible-to-create-an-Android-app-that-does-not-have-a-UI I have (using Android Studio) created a blank app, then "safe deleted" the layout xml file and REMoved the setContentView line in MainActivity. This seems to work fine except that, each time the app is run, the previous screen (the layout of whatever app is already running) starts to make way for a new blank white layout, and then after a fraction of a second the previous screen comes back. The effect is a momentary white flash each time the app is run.
How do I stop the white flash appearing?