@Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.showinfo_menu, menu);

    MenuItem shareItem = menu.findItem(R.id.menu_share);
    ShareActionProvider shareActionProvider = (ShareActionProvider) shareItem.getActionProvider();
    shareActionProvider.setShareIntent(mShareIntentBuilder.getIntent());

    return true;
  }
 private void updateShareIntent() {
   // update share intent
   final IntentBuilder builder = IntentBuilder.from(activity);
   builder.setText(determineBitcoinRequestStr(false));
   builder.setType("text/plain");
   builder.setChooserTitle(R.string.request_coins_share_dialog_title);
   shareActionProvider.setShareIntent(builder.getIntent());
 }