As the title suggests, I cannot set the protocol for my HttpsURLConnection to be "TLSv1.2". Based on the accepted answer here, it should be as easy as
HttpsURLConnection