Hello, I have one problem. I use Starter Service for looking my Bluetooth connection while it disconnect. it work ok.
but problem is when I close app it got error below:
but problem is when I close app it got error below:
B4X:
The Starter service should never be started from a receiver.
*** Service (starter) Create ***
** Service (starter) Start **
starter_service_start (java line: 163)
java.lang.IllegalStateException: Interval must be larger than 0.
at anywheresoftware.b4a.objects.Timer.setEnabled(Timer.java:79)
at b4a.gsmmodem.starter._service_start(starter.java:163)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at b4a.gsmmodem.starter.handleStart(starter.java:100)
at b4a.gsmmodem.starter.access$000(starter.java:8)
at b4a.gsmmodem.starter$1.run(starter.java:71)
at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
at b4a.gsmmodem.starter.onStartCommand(starter.java:69)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3609)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1717)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6710)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
java.lang.RuntimeException: Unable to start service b4a.gsmmodem.starter@608448a with Intent { cmp=b4a.gsmmodem/.starter (has extras) }: java.lang.RuntimeException: java.lang.IllegalStateException: Interval must be larger than 0.
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3626)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1717)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6710)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Interval must be larger than 0.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:223)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at b4a.gsmmodem.starter.handleStart(starter.java:100)
at b4a.gsmmodem.starter.access$000(starter.java:8)
at b4a.gsmmodem.starter$1.run(starter.java:71)
at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
at b4a.gsmmodem.starter.onStartCommand(starter.java:69)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3609)