Answers for "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"

1

request permission foreground service

<manifest ...>
     ...
     <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
     ...
     <application ...>
     ...
</manifest>
Posted by: Guest on August-22-2020

Code answers related to "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 answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language