Android Question Error On Http Service

nazilabdulla

Member
Licensed User
Longtime User
I cant connect to any server, getting the error as mentioned below


CODE lang="b4x" title="Code"] Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://www.google.com")

Wait For (j) JobDone(j As HttpJob)
If j.Success Then[/CODE]

Error Log:
java.lang.RuntimeException: Unable to create service b4a.example.httputils2service: java.lang.RuntimeException: anywheresoftware.b4a.B4AUncaughtException

    at android.app.ActivityThread.handleCreateService(ActivityThread.java:4673)

    at android.app.ActivityThread.access$1700(ActivityThread.java:301)

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

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

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

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

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

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

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

Caused by: java.lang.RuntimeException: anywheresoftware.b4a.B4AUncaughtException

    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:175)

    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)

    at b4a.example.httputils2service.onCreate(httputils2service.java:56)

    at android.app.ActivityThread.handleCreateService(ActivityThread.java:4661)

    ... 8 more

Caused by: anywheresoftware.b4a.B4AUncaughtException

    at anywheresoftware.b4a.Msgbox.debugWait(Msgbox.java:210)

    at anywheresoftware.b4a.debug.Debug.wait(Debug.java:217)

    at anywheresoftware.b4a.shell.Shell.debugPause(Shell.java:544)

    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:417)

    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)

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

    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)

    ... 11 more
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…