congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Utils
Code IndexAdd Tabnine to your IDE (free)

How to use
Utils
in
com.mega4tech.whatsappapilibrary

Best Java code snippets using com.mega4tech.whatsappapilibrary.Utils (Showing top 1 results out of 315)

origin: omegaes/Whatsapp-API

public WMessage(String text, File file, Context context) {
  this.text = text;
  this.file = file;
  if (file != null) {
    mime = Utils.getMimeType(context, file);
    if (mime == null)
      type = MessageType.TEXT;
    else if (mime.contains("video"))
      type = MessageType.VIDEO;
    else if (mime.contains("audio"))
      type = MessageType.AUDIO;
    else if (mime.contains("image"))
      type = MessageType.IMAGE;
  } else
    type = MessageType.TEXT;
}
com.mega4tech.whatsappapilibraryUtils

Javadoc

Created by aboodba on 08/03/2017.

Most used methods

  • getMimeType

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • JButton (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now