@Nullable
  public static Context getApplicationContext() {
    try {
      Class<?> contextClass = Class.forName("android.content.Context");
      return new Context(contextClass);
    } catch (ClassNotFoundException e) {
      // Not Android
      return null;
    }
  }
Performs reflection to see if the android.content.Context class is available at runtime. If so,
this method will return an instance of this class.

@return an instance of this class if invoked within an Android environment, otherwise, null
src/main/java/com/google/maps/android/Context.java