For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void setSelfSignedSSL(Context mContext, @Nullable String instanceName){ | |
try { | |
CertificateFactory cf = CertificateFactory.getInstance("X.509"); | |
// cert file stored in \app\src\main\assets | |
InputStream caInput = new BufferedInputStream(mContext.getAssets().open("certificate.cer")); | |
Certificate ca = cf.generateCertificate(caInput); | |
caInput.close(); |