o2640110
o2640110

Reputation: 125

Android background services alternative on Oreo

I want to create a background only app (no activities, no launcher icon, etc...), since I'm relatively new to Android, I don't know what to use. I saw there was the background services but it seems to be depreciated with Android API 26+ (Oreo).

So, what is the preferred way to do this now?

In case I have root access, is it possible to do it?

Upvotes: 0

Views: 1216

Answers (1)

Greg Moens
Greg Moens

Reputation: 1825

Even though background services are restricted in Oreo and beyond, foreground services are still supported. If you want to create an app with no activities, using a foreground service that starts on boot is a valid option.

Upvotes: 1

Related Questions