/** Retriever application list from the server. */
  private void getAppListFromServer() {
    String ipSaved =
        Preference.getString(context.getApplicationContext(), Constants.PreferenceFlag.IP);

    if (ipSaved != null && !ipSaved.isEmpty()) {
      ServerConfig utils = new ServerConfig();
      utils.setServerIP(ipSaved);
      CommonUtils.callSecuredAPI(
          AppListActivity.this,
          utils.getAPIServerURL(context) + Constants.APP_LIST_ENDPOINT,
          HTTP_METHODS.GET,
          null,
          AppListActivity.this,
          Constants.APP_LIST_REQUEST_CODE);
    } else {
      Log.e(TAG, "There is no valid IP to contact the server");
    }
  }