Codota Logo
Analytics
Code IndexAdd Codota to your IDE (free)

How to use
Analytics
in
it.tidalwave.bluebill.mobile.android.util

Best Java code snippets using it.tidalwave.bluebill.mobile.android.util.Analytics (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-mobile-android-news

 /*******************************************************************************************************************
  *
  * {@inheritDoc}
  *
  ******************************************************************************************************************/
 @Nonnull @Override
 protected URL createUrl (final String string)
  throws IOException
  {
   return Analytics.createURL(string);
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-mobile-android-common

@Nonnull
public static URL createURL (final @Nonnull String string)
 throws IOException
 {
  try 
   {
    final StringBuilder buffer = new StringBuilder(string);
    buffer.append(string.contains("?") ? "&" : "?");
    buffer.append("installId=").append(encode(getInstallId()));
    buffer.append("&blueBillVersion=").append(encode(getMessage(Analytics.class, "title")));
    buffer.append("&osVersion=").append(encode(System.getProperty("os.version")));
    buffer.append("&javaVersion=").append(encode(System.getProperty("java.version")));
    buffer.append("&userLanguage=").append(encode(System.getProperty("user.language")));
    buffer.append("&userRegion=").append(encode(System.getProperty("user.region")));
    buffer.append("&board=").append(encode(Build.BOARD));
    buffer.append("&brand=").append(encode(Build.BRAND));
    buffer.append("&device=").append(encode(Build.DEVICE));
    buffer.append("&model=").append(encode(Build.MODEL));
    buffer.append("&product=").append(encode(Build.PRODUCT));
    buffer.append("&versionIncremental=").append(encode(Build.VERSION.INCREMENTAL));
    buffer.append("&versionRelease=").append(encode(Build.VERSION.RELEASE));
    buffer.append("&versionSDK=").append(encode(Build.VERSION.SDK));
    return new URL(buffer.toString());
   }
  catch (UnsupportedEncodingException e)
   {
    throw new MalformedURLException(e.toString());
   }
 }
origin: it.tidalwave.bluebill/bluebill-mobile-android

 @Override
 public void run()
  {
   try
    {
     log.info(">>>> pinging...");
     Analytics.createURL("http://bluebill.tidalwave.it/mobile/ping").openStream().close();
    }
   catch (FileNotFoundException e)
    {
     pinged = true;
     log.warn("While pinging: {}", e.toString());
    }
   catch (IOException e)
    {
     log.warn("While pinging: {}", e.toString());
    }
  }
}.start();
it.tidalwave.bluebill.mobile.android.utilAnalytics

Most used methods

  • createURL
  • encode
  • getInstallId

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JList (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now