[Android Apps and Games] xerel89:
App crashing some time, but I here the log

FATAL EXCEPTION: main

Process: james.dsp, PID: 10031

java.lang.RuntimeException: Unable to start receiver james.dsp.receiver.BootCompletedReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=james.dsp/.service.HeadsetService }: app is in background uid UidRecord{949cf39 u0a198 RCVR idle change:uncached procs:1 seq(0,0,0)}

at android.app.ActivityThread.handleReceiver(ActivityThread.java:4035)

at android.app.ActivityThread.access$1400(ActivityThread.java:237)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:223)

at android.app.ActivityThread.main(ActivityThread.java:7664)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=james.dsp/.service.HeadsetService }: app is in background uid UidRecord{949cf39 u0a198 RCVR idle change:uncached procs:1 seq(0,0,0)}

at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1715)

at android.app.ContextImpl.startService(ContextImpl.java:1670)

at android.content.ContextWrapper.startService(ContextWrapper.java:720)

at android.content.ContextWrapper.startService(ContextWrapper.java:720)

at james.dsp.receiver.BootCompletedReceiver.onReceive(BootCompletedReceiver.java:20)

at android.app.ActivityThread.handleReceiver(ActivityThread.java:4026)

... 8 more

FATAL EXCEPTION: main

Process: io.ikws4.weiju, PID: 9878

java.lang.RuntimeException: Unable to destroy activity {io.ikws4.weiju/io.ikws4.weiju.ui.activitys.CategoryActivity}: k.j: lateinit property binding has not been initialized

at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5109)

at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5139)

at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5431)

at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5361)

at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:223)

at android.app.ActivityThread.main(ActivityThread.java:7664)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Caused by: k.j: lateinit property binding has not been initialized

at io.ikws4.weiju.ui.fragments.CategoryHomeFragment.c0(CategoryHomeFragment.kt:3)

at androidx.fragment.app.Fragment.t0(Fragment.java:6)

at j.m.d.q.a(FragmentManager.java:283)

at j.m.d.q.l(FragmentManager.java:9)

at j.m.d.q.a(FragmentManager.java:317)

at j.m.d.q.a(FragmentManager.java:592)

at j.m.d.q.e(FragmentManager.java:17)

at androidx.fragment.app.Fragment.t0(Fragment.java:1)

at j.m.d.q.a(FragmentManager.java:283)

at j.m.d.q.l(FragmentManager.java:9)

at j.m.d.q.a(FragmentManager.java:313)

at j.m.d.q.a(FragmentManager.java:592)

at j.m.d.q.e(FragmentManager.java:17)

at j.m.d.d.onDestroy(FragmentActivity.java:3)

at j.b.k.l.onDestroy(AppCompatActivity.java:1)

at android.app.Activity.performDestroy(Activity.java:8239)

at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1344)

at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5094)

... 13 more