@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_financial_product_selector);

    long clientId = getIntent().getExtras().getLong(EXTRA_CLIENT_ID, 0);

    if (savedInstanceState == null)
      setFragment(R.id.content, FinancialProductSelectorFragment.newInstance(clientId));
  }
  public static void showErrorDialog(BaseActivity activity, int errorCode) {

    // Get the error dialog from Google Play services
    Dialog errorDialog =
        GooglePlayServicesUtil.getErrorDialog(
            errorCode, activity, GooglePlayServicesUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);

    // If Google Play services can provide an error dialog
    if (errorDialog != null) {

      // Create a new DialogFragment in which to show the error dialog
      ErrorDialogFragment errorFragment = new ErrorDialogFragment();

      // Set the dialog in the DialogFragment
      errorFragment.setDialog(errorDialog);

      // Show the error dialog in the DialogFragment
      errorFragment.show(activity.getSupportFragmentManager(), TAG_DIALOG_NAME);
    }
  }