B4X FEED android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord است. این موضوع تا کنون 76 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
76
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,593
4,508
Dear friends, please,

I am fighting with situation which is for me confused.
But I must try to ask you.
I am playing with VOSK offline speech to text and if I have my phone locked (it does it mean display is OFF),
then I get after short time this:
Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord
Click to expand...
before I put here code (I must edit the code for easy interpretation here) I want ask,
if this error is because of Android. I mean - if Android kill the STT recognition or if the mistake is in my code.

If I run the app with mobile phone which is active (display ON), then I dont get this this error.

I am using in servicestart and servicecreate:
B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید

Please, is somebody who have same behavior or can somebody give me some advice, please,
p4ppc

 

عقب
بالا