I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| public Bitmap drawable2Bitmap(Drawable drawable, int w, int h) { | |
| Bitmap.Config config = Bitmap.Config.ARGB_8888; | |
| Bitmap bitmap = Bitmap.createBitmap(w, h, config); | |
| //注ζοΌδΈι’δΈθ‘代η θ¦η¨ε°οΌε¦εε¨Viewζθ SurfaceViewιηcanvas.drawBitmapδΌηδΈε°εΎ | |
| Canvas canvas = new Canvas(bitmap); | |
| drawable.setBounds(0, 0, w, h); | |
| drawable.draw(canvas); | |
| return bitmap; | |
| } |
| import com.squareup.okhttp.OkHttpClient; | |
| import java.security.cert.CertificateException; | |
| import javax.net.ssl.HostnameVerifier; | |
| import javax.net.ssl.SSLContext; | |
| import javax.net.ssl.SSLSession; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import javax.net.ssl.TrustManager; | |
| import javax.net.ssl.X509TrustManager; | |
| public class OkHttpUtils { |
| /* | |
| * Copyright (C) 2006 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| public class CustomMatchers { | |
| public static Matcher<View> withBackground(final int resourceId) { | |
| return new TypeSafeMatcher<View>() { | |
| @Override | |
| public boolean matchesSafely(View view) { | |
| return sameBitmap(view.getContext(), view.getBackground(), resourceId); | |
| } | |
| @Override |
| /* | |
| * Copyright (C) 2018 Square, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| -assumenosideeffects class kotlin.jvm.internal.Intrinsics { | |
| static void checkParameterIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkNotNullExpressionValue(java.lang.Object, java.lang.String); | |
| static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String); | |
| static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String); | |
| static void checkFieldIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkNotNull(java.lang.Object, java.lang.String); | |
| static void checkNotNullParameter(java.lang.Object, java.lang.String); |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| /* | |
| MIT License | |
| Copyright (c) 2017 | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| package com.example.glidetest.app; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; | |
| import android.widget.ImageView; | |
| import android.widget.ProgressBar; | |
| import com.bumptech.glide.Glide; | |
| import com.bumptech.glide.integration.okhttp.OkHttpUrlLoader; |