I have two `Activity` subclasses. One is my `MainActivity`, the other is a splash screen called `SplashActivity`. Here is what I want to happen:

1. Open my app
2. App `MainActivity` starts up
3. The `MainActivity` starts the `SplashActivity` with `startActivity()` method.
4. The main activity starts doing some setup/loading that takes a while.
5. The loading/setup work finishes
6. Stop the `SplashActivity` and go back to the `MainActivity`.

I launch the `SplashActivity` with this code in `MainActivity.onCreate()`:

```
startActivity(new Intent(this, SplashActivity.class));

```

How can I tell the `SplashActivity` to pop off the screen and go back to the `MainActivity` from `MainActivity` itself?

EDIT: Note that I did some research on this before asking. The only solution I've found involved doing something from *within* `SplashActivity` itself, but the `SplashActivity` doesn't really control itself in the model I'm thinking about. The `MainActivity` is controlling the splash from outside. If this isn't how it should work, I'm open to a new approach/design as well.