I have a Toast that is called from inside a Service. It always appears regardless of the state of the app, as designed.
Toast
Service
How can make it appear
Just place some flag
public class MyActivity { private boolean isInForeground; protected onResume() { isInForeground = true; } protected onPause() { isInForeground = false; } private displayToast() { if(isInForeground) { Toast.makeToast().show(); } } }