Android Question Error with HttpUtils2Service after B4A update

walmo

Active Member
Licensed User
Longtime User
Hi Errol
Using
B4X:
    Dim jo As JavaObject = hc
    Dim proxy1, socketAddress As JavaObject
    socketAddress.InitializeNewInstance("java.net.InetSocketAddress", Array (Starter.master_ip,Starter.master_port))
    proxy1.InitializeNewInstance("java.net.Proxy", Array ("HTTP", socketAddress))
    Dim builder As JavaObject = jo.RunMethod("sharedInit", Array("hc"))
    builder.RunMethod("proxy", Array(proxy1)) '<---- fixed!!!
    jo.SetField("client", builder.RunMethod("build", Null))
    TaskIdToJob.Initialize

Installed B4A 9.8 back and working again.
 
Upvote 0

walmo

Active Member
Licensed User
Longtime User
This is always the wrong solution. It also prevents me from helping you.
I had to do that for now as i need to finish.
Will try the workaround as soon as i'm not so pushed for time .
Thank you Erel.
 
Last edited:
Upvote 0
Top