0

From the Android Developer documentation:

"When the activity enters the Resumed state, it comes to the foreground, and then the system invokes the onResume() callback."

Android Documentation

What means "comes to the foreground"? Respectively: What's the opposite of running in the foreground?

st88
  • 91
  • 1
  • 6
  • It means that it becomes active and ready for user interaction. have you looked at this? https://stackoverflow.com/questions/8515936 – Barak Aburus Mar 21 '21 at 13:25

2 Answers2

2

The phrase "comes to the foreground" means, as Sam Chen said, your app is fully visible. Normally in fullscreen, so the user can interact with your app.

The callback onResume() is called, when your app was running in the background and is now coming to the foreground again (e.g. the user was using your app, switched to another one and then comes back to your app).

You might use this callback to do certain things to e.g. reload the current content to be up-to-date.

Luxi
  • 33
  • 6
1

Running in the Foreground means your app is currently Fully Visible on your device, you can see it and interact with it and it will respond to you right away.

Sam Chen
  • 2,491
  • 1
  • 17
  • 31