@Erel Okay will try on smartphone on APK and not inside emulator.
@Other
About CallSubDelayed that work fine, service is restart in emulator too.
But that's causing a crash into service i wrote this:
Sub JobDone (Job As HttpJob)
CallSubDelayed(call_phone,Me)
Log("test")
End Sub
Sub call_phone
'CALL NUMBER
StartActivity(Phone3.Call("123"))
End Sub
All got working, call is showed and too i can see message "example" working fine, but that causing too a crash:
** Activity (main) Pause, UserClosed = false **
java.lang.RuntimeException: java.lang.Exception: Sub class b4a.example.tt was not found.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:165)
at anywheresoftware.b4a.BA$2.run(BA.java:328)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.Exception: Sub class b4a.example.tt was not found.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:140)
... 10 more