When creating a new project in Android Studio, we see the gradle file has two entries called “compileSdkVersion” and “targetSdkVersion”. It’s set to the latest version by default. Let’s take a look at what they are actually for.
As the name suggests, compileSdkVersion is the version of Android APIs that…
This post focuses on the Android side of creating a Cordova plugin.
How does a Cordova plugin work?
This post is about using the Android platform provided trust store to validate an X509Certificate.
First, you need to get an instance of TrustManagerFactory.
TrustManagerFactory tmf = TrustManagerFactory.getInstance(defAlgo);
Then you need to initialise it. This can be done by calling
tmf.init((KeyStore) null); //use default platform set of trusted…