mukeshInf
mukeshInf
Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{be35771 u0 kiwi.theplatform.android/com.jwplayer.pub.api.background.MediaService} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2242) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2213) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2505) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8741) at java.lang.reflect.Method.invoke(Method.java)...
private void updateWakeLock(boolean enable) { if (mWindow != null) { if (enable && !isInBackground) { mWindow.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } else { mWindow.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } } }