@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.compress_page);

    demoVideoFolder = Environment.getExternalStorageDirectory().getAbsolutePath() + "/DCIM/Camera/";
    demoVideoPath = demoVideoFolder + "in.mp4";

    Log.i(
        Prefs.TAG,
        getString(R.string.app_name)
            + " version: "
            + GeneralUtils.getVersionName(getApplicationContext()));
    workFolder = getApplicationContext().getFilesDir().getAbsolutePath() + "/";
    Log.i(Prefs.TAG, "workFolder (license and logs location) path: " + workFolder);
    vkLogPath = workFolder + "vk.log";
    Log.i(Prefs.TAG, "vk log (native log) path: " + vkLogPath);

    GeneralUtils.copyLicenseFromAssetsToSDIfNeeded(this, workFolder);
    GeneralUtils.copyDemoVideoFromAssetsToSDIfNeeded(this, demoVideoFolder);

    Button invoke = (Button) findViewById(R.id.invokeButton);
    invoke.setOnClickListener(
        new OnClickListener() {
          public void onClick(View v) {
            Log.i(Prefs.TAG, "run clicked.");
            if (GeneralUtils.checkIfFileExistAndNotEmpty(demoVideoPath)) {
              new TranscdingBackground(CompressSimple.this).execute();
            } else {
              Toast.makeText(
                      getApplicationContext(), demoVideoPath + " not found", Toast.LENGTH_LONG)
                  .show();
            }
          }
        });

    int rc = GeneralUtils.isLicenseValid(getApplicationContext(), workFolder);
    Log.i(Prefs.TAG, "License check RC: " + rc);
  }