I need the service HttpUtils2Service in starter service, because use method JOBDONE(Job as HTTPJO)
All service are destroyed in ANDROID8+ (ok) when app is in BACKGROUND (this is a big problem).
I write the code (access to a Web Service) in starter service, and with B4A 8.3+ the Starte Service are ignored and not destroyed (perfect), but.
How avoid to destroy other serve and especially httputils2service
i try to do a StartService( HttpUtils2Service)
but, this is the trace crack in my app
** Service (httputils2service) Start **
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
Solicitud a WS Enviada
java.lang.IllegalStateException: Not allowed to start service Intent { cmp=nts.gpstoy/anywheresoftware.b4a.samples.httputils2.httputils2service }: app is in background uid UidRecord{11a349d u0a189 LAST bg:+1m2s807ms idle change:cached procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1521)
at android.app.ContextImpl.startService(ContextImpl.java:1477)
at android.content.ContextWrapper.startService(ContextWrapper.java:650)
at anywheresoftware.b4a.keywords.Common$9.run(Common.java:870)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:172)
at android.app.ActivityThread.main(ActivityThread.java:6590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
All service are destroyed in ANDROID8+ (ok) when app is in BACKGROUND (this is a big problem).
I write the code (access to a Web Service) in starter service, and with B4A 8.3+ the Starte Service are ignored and not destroyed (perfect), but.
How avoid to destroy other serve and especially httputils2service
i try to do a StartService( HttpUtils2Service)
but, this is the trace crack in my app
** Service (httputils2service) Start **
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
Solicitud a WS Enviada
java.lang.IllegalStateException: Not allowed to start service Intent { cmp=nts.gpstoy/anywheresoftware.b4a.samples.httputils2.httputils2service }: app is in background uid UidRecord{11a349d u0a189 LAST bg:+1m2s807ms idle change:cached procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1521)
at android.app.ContextImpl.startService(ContextImpl.java:1477)
at android.content.ContextWrapper.startService(ContextWrapper.java:650)
at anywheresoftware.b4a.keywords.Common$9.run(Common.java:870)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:172)
at android.app.ActivityThread.main(ActivityThread.java:6590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)