@Override
  public void onResume() {
    super.onResume();
    if (PHPublisherContentRequest.didDismissContentWithin(
        2000)) { // can actually be less than 2 seconds, all we want is enough time for onResume to
      // be called
      PHStringUtil.log("Resumed after displaying content");
      return;
    }

    PHStringUtil.log("Resumed PHPublisherView regularly");
  }
 @Override
 public void willGetContent(PHPublisherContentRequest request) {
   PHStringUtil.log("Will get content...");
   super.addMessage("Starting content request...");
 }