medito-app icon indicating copy to clipboard operation
medito-app copied to clipboard

android.app.BackgroundServiceStartNotAllowedException

Open scouech opened this issue 4 months ago • 0 comments

meditofoundation.medito.MainActivity.startAudioService

Exception java.lang.RuntimeException: at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4970) at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5003) at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:54) at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:186) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:107) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2393) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:204) at android.os.Looper.loop (Looper.java:291) at android.app.ActivityThread.main (ActivityThread.java:8129) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:601) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1019) Caused by android.app.BackgroundServiceStartNotAllowedException: at android.app.ContextImpl.startServiceCommon (ContextImpl.java:2043) at android.app.ContextImpl.startService (ContextImpl.java:1984) at android.content.ContextWrapper.startService (ContextWrapper.java:817) at meditofoundation.medito.MainActivity.startAudioService (MainActivity.kt:39) at meditofoundation.medito.MainActivity.onResume (MainActivity.kt:34) at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1535) at android.app.Activity.performResume (Activity.java:8487) at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4954)

See console here

scouech avatar Feb 15 '24 17:02 scouech