Hi, guys --
In some moment one activity starts another and dies.
But there is a problem with current downloads, which do not allow to die immediatelly.
I saw very old post with following sample
where hc is HttpClient inside HttpUtils module.
Probably this works with OkHttpClient also.
But I am a little confused that httpClient.getConnectionManager() is deprecated.
What is correct method (I need a solution for API14+)
In some moment one activity starts another and dies.
But there is a problem with current downloads, which do not allow to die immediatelly.
I saw very old post with following sample
B4X:
Dim reflectorInstance As Reflector
reflectorInstance.Target = HttpUtils2Service.hc
reflectorInstance.Target = reflectorInstance.GetField ("client")
reflectorInstance.Target = reflectorInstance.RunMethod ("getConnectionManager")
reflectorInstance.RunMethod ("shutdown")
where hc is HttpClient inside HttpUtils module.
Probably this works with OkHttpClient also.
But I am a little confused that httpClient.getConnectionManager() is deprecated.
What is correct method (I need a solution for API14+)