@Override
    protected Integer doInBackground(String... params) {
      InputStream inputStream = null;
      HttpURLConnection urlConnection = null;
      Integer result = 0;
      try {
        /* forming th java.net.URL object */
        URL url = new URL(params[0]);
        urlConnection = (HttpURLConnection) url.openConnection();
        /* optional request header */
        urlConnection.setRequestProperty("Content-Type", "application/json");

        /* optional request header */
        urlConnection.setRequestProperty("Accept", "application/json");

        /* for Get request */
        urlConnection.setRequestMethod("GET");
        int statusCode = urlConnection.getResponseCode();

        /* 200 represents HTTP OK */
        if (statusCode == 200) {
          inputStream = new BufferedInputStream(urlConnection.getInputStream());
          CommonFunction commonFunction = new CommonFunction();
          String response = commonFunction.convertInputStreamToString(inputStream);

          Config.editor.putString("livegameresponse", response);
          Config.editor.commit();

          vidoesList = commonFunction.parseResult(response);
          result = 1; // Successful

        } else {
          result = 0; // "Failed to fetch data!";
        }

      } catch (Exception e) {
        Log.d(TAG, e.getLocalizedMessage());
      }

      return result; // "Failed to fetch data!";
    }