content: //******************************************************************************
  // SCICHART® Copyright SciChart Ltd. 2011-2017. All rights reserved.
  //
  // Web: http://www.scichart.com
  // Support: support@scichart.com
  // Sales:   sales@scichart.com
  //
  // SciChartApp.java is part of the SCICHART® Examples. Permission is hereby granted
  // to modify, create derivative works, distribute and publish any part of this source
  // code whether for commercial, private or personal use.
  //
  // The SCICHART® examples are distributed in the hope that they will be useful, but
  // without any warranty. It is provided "AS IS" without warranty of any kind, either
  // expressed or implied.
  //******************************************************************************
  
  package com.scichart.examples;
  
  import android.app.Application;
  import android.util.Log;
  
  //BEGIN_DEMO_APPLICATION
  import com.scichart.examples.demo.helpers.Module;
  //END_DEMO_APPLICATION
  
  public class SciChartApp extends Application {
  
      private static SciChartApp sInstance;
  
      public static SciChartApp getInstance() {
          return sInstance;
      }
  
      //BEGIN_DEMO_APPLICATION
      private final Module module = new Module(this);
      //END_DEMO_APPLICATION
  
      @Override
      public void onCreate() {
          super.onCreate();
          sInstance = this;
  
          setUpSciChartLicense();
      }
  
      private void setUpSciChartLicense() {
          // Set your license code here to license the SciChart Android Examples app
          // You can get a trial license key from https://www.scichart.com/licensing-scichart-android/
          // Purchased license keys can be viewed at https://www.scichart.com/profile
          //
          // e.g.
          //
          // com.scichart.charting.visuals.SciChartSurface.setRuntimeLicenseKey(
          //        "<LicenseContract>" +
          //                "<Customer>your-email@company.com</Customer>" +
          //                "<OrderId>Trial</OrderId>" +
          //                "<LicenseCount>1</LicenseCount>" +
          //                "<IsTrialLicense>true</IsTrialLicense>" +
          //                "<SupportExpires>12/21/2017 00:00:00</SupportExpires>" +
          //                "<ProductCode>SC-ANDROID-2D-ENTERPRISE-SRC</ProductCode>" +
          //                "<KeyCode>6ccc960b22b7b12360a141a7c2a89bce4e40.....09744b6c195022e9fa1ebcf9a0e78167cbaa8f9b8eee9221</KeyCode>" +
          //        "</LicenseContract>"
          // );
  
          try {
              com.scichart.charting.visuals.SciChartSurface.setRuntimeLicenseKey("");
          } catch (Exception e) {
              Log.e("SciChart", "Error when setting the license", e);
          }
      }
  
      //BEGIN_DEMO_APPLICATION
      public final Module getModule() {
          return module;
      }
      //END_DEMO_APPLICATION
  }
  