Open in app
Home
Notifications
Lists
Stories

Write
Ben Joseph
Ben Joseph

Home

Feb 1, 2018

CompileSDKVersion and TargetSDKVersion in Android

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…

Android

2 min read


Oct 6, 2017

Creating a Cordova plugin

This post focuses on the Android side of creating a Cordova plugin. How does a Cordova plugin work? In a nutshell, Cordova provides a bridge between JavaScript and native code, enabling you to write native code that gets exposed to your Cordova app via a common JavaScript interface. Each method…

Cordova

3 min read


Sep 27, 2017

Validating a Certificate on Android using platform CAs

This post is about using the Android platform provided trust store to validate an X509Certificate. First, you need to get an instance of TrustManagerFactory. String defAlgo=TrustManagerFactory.getDefaultAlgorithm(); 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…

Android

1 min read

Ben Joseph

Ben Joseph

Software Engineer

Following
  • M.G. Siegler

    M.G. Siegler

  • Chet Haase

    Chet Haase

  • Wajahat Karim

    Wajahat Karim

  • Ali Muzaffar

    Ali Muzaffar

  • Thoughtworks

    Thoughtworks

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable