Skip to content

Instantly share code, notes, and snippets.

@andreban
Last active December 9, 2015 11:07
Show Gist options
  • Save andreban/0dd2a5c3ec0beb62dc54 to your computer and use it in GitHub Desktop.
Save andreban/0dd2a5c3ec0beb62dc54 to your computer and use it in GitHub Desktop.
CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();
Intent actionIntent = new Intent(
this.getApplicationContext(), ShareBroadcastReceiver.class)
PendingIntent menuItemPendingIntent = PendingIntent.getBroadcast(getApplicationContext(), 0, actionIntent, 0);
String menuItemTitle = getString(R.string.menu_item_title);
intentBuilder.addMenuItem(menuItemTitle, menuItemPendingIntent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment