Should i use StartService or StartForegroundService for API >= 26?
问题 I'm a bit confused because i read some posts where i'm supposed too use ContextCompat.StartForegroundService(); if the API is >= 26. Now I still just use StartService and it works even though i'm supposed to get an IllegalStateException on an API >= 26 ( current api on phone is 27) according to this post. https://medium.com/mindorks/mastering-android-service-of-2018-a4a1df5ed5a6 I know Service is an old concept. Let me assure you we will not discuss the basics and we will learn the recent