public static boolean isFileUploadAvailable(final boolean needsCorrectMimeType){
  if (Build.VERSION.SDK_INT == 19) {
    final String platformVersion=(Build.VERSION.RELEASE == null) ? "" : Build.VERSION.RELEASE;
    return !needsCorrectMimeType && (platformVersion.startsWith("4.4.3") || platformVersion.startsWith("4.4.4"));
  }
 else {
    return true;
  }
}

public static boolean isFileUploadAvailable ( final boolean needsCorrectMimeType ) { if ( Build . VERSION . SDK_INT == 19 ) { final String platformVersion = ( Build . VERSION . RELEASE == null ) ? "" : Build . VERSION . RELEASE ; return ! needsCorrectMimeType && ( platformVersion . startsWith ( "4.4.3" ) || platformVersion . startsWith ( "4.4.4" ) ) ; } else { return true ; } }
returns whether file uploads can be used on the current device ( generally all platform versions except for 4 . 4 ) on android 4 . 4 . 3 / 4 . 4 . 4 , file uploads may be possible but will come with a wrong mime type
