B4J Question Snd Get reques

Eketerina

Member
This is basic mixed with Java. It is very difficult to find the reason why there is an error here. Help please

B4X:
Public Sub Connect(url As String)
    Dim req As OkHttpRequest
    Dim hc As OkHttpClient
    req.InitializeGet(url)
    hc.Execute(req, 0)
End Sub
 

Attachments

  • error.PNG
    11.5 KB · Views: 84

Eketerina

Member
B4X:
Public Sub Connect(url As String)
    httpTool.Initialize("")
    Dim httpReq As OkHttpRequest
    httpReq.InitializeGet("https://mysite.com/myfiles/1.php?p=111111")
    httpTool.Execute(httpReq, 0)
    
    
End Sub


Sub ResponseSuccess (Response As HttpResponse, TaskId As Int)
    'AdHocText.Text = Response.GetString
End Sub

How to callback ResponseSuccess ?
 

Attachments

  • error2.PNG
    22.9 KB · Views: 81
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…