Setup AsyncHttpClient to use HTTPS
I am using com.loopj.android:android-async-http:1.4.9 for my request to server. It was working fine until I SSL/TLS is required in my server. So I need to modify my AsyncHTTPClient to use HTTPS in all URLs. I checked this similar how to make HTTPS calls using AsyncHttpClient? but did not provide clear solution to the problem. The accepted solution was not secure as well because of this warning from the library itself: Warning! This omits SSL certificate validation on every device, use with caution. So I went on and check other solutions. I ended up following the recommendation from: https:/