NO MORE STARTSERVICE – The new context. startForegroundService() method starts a foreground service but with a implicit contract that service will call start foreground within 5 second of its creation . You can also call startService and startForegroundService for different OS version.