public static boolean isDocumentModeEligible(Context context){
  return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !DeviceFormFactor.isTablet(context);
}

public static boolean isDocumentModeEligible ( Context context ) { return Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP && ! DeviceFormFactor . isTablet ( context ) ; }
whether the device could possibly run in document mode ( may return true even if the document mode is turned off ) .
