This is a test app for foreground service on Android O . Please correct me if it has any questions.
crash : android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground().
link : https://blog.csdn.net/lylddinghffw/article/details/78219327