title: Are there any benefits to using Context.startForegroundService(Intent) instead of Context.startService(Intent) for foreground services?
body: <p>I read in <a href="https://developer.android.com/reference/android/content/Context.html#startForegroundService(android.content.Intent)" rel="noreferrer">the docs</a> that <code>Context.startForegroundService()</code> has an implicit promise that the started service will call <code>startForeground()</code>. However, since Android O is coming out with changes to background and foreground services, are there any other performance improvements that it has compared to using the older <code>startService()</code> method, or is it just best practice going forward? </p>