Пример #1
0
  @Override
  public void startRequest() {
    super.startRequest();

    request = new PHPublisherOpenRequest(this, this);

    request.send();
  }
  @Override
  public void startRequest() {
    super.startRequest();

    // testing the badge
    PHNotificationView notifyView = new PHNotificationView(this, placementTxt.getText().toString());
    notifyView.setBackgroundColor(0xFF020AFF);
    notifyView.refresh();

    super.addMessage("Notification View: ", notifyView);

    if (!preloaded) {
      // pass ourselves as the delegate AND the context
      request = new PHPublisherContentRequest(this, placementTxt.getText().toString());
      request.setOnPurchaseListener(this);
    }

    request.send();

    preloaded = false;
  }