java.lang.RuntimeException: Unable to create service fly.speedmeter.grub.GpsServices: java.lang.SecurityException: Permission Denial: startForeground from pid=20343, uid=10166 requires android.permission.FOREGROUND_SERVICE code example
Example: request permission foreground service
<manifest ...>
...
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
...
<application ...>
...
</manifest>