Questions tagged [shareactionprovider]

This is a provider for a share action.

This is a provider for a share action.
It is responsible for creating views that enable data sharing and also to show a sub menu with sharing activities if the hosting item is placed on the overflow menu.

Reference page: http://developer.android.com/reference/android/widget/ShareActionProvider.html

163 questions
8
votes
4 answers

Android: ShareActionProvider with no history

According to the Android documentation if I don't want my ShareActionProvider to persist the share history I should call mShareActionProvider.setShareHistoryFileName(null) However when I do this I get the following crash on selecting a share…
8
votes
3 answers

ShareActionProvider for API level less than 14

is it possible to use shareActionProvider for Apps using API less than 14?
SKK
  • 5,261
  • 3
  • 27
  • 39
7
votes
2 answers

ShareActionProvider menu style

I have this menu when the user clicks on the ShareActionProvider: How can I change its background color. I suppose I have to style it but I cannot find anywhere how.
alecnash
  • 1,750
  • 1
  • 18
  • 42
7
votes
2 answers

Only Four Options For ShareActionProvider With ActionBarSherlock

I am trying to share plain text while using a Share Action Provider via ActionBarSherlock and there are only four options to share it with and no "See all..." option. Why is that? This is what it looks like: and this is what I want it to look…
6
votes
3 answers

Android Custom Icon ShareActionProvider?

i'm using a ShareActionProvider, but i want to custom the icon (i want to change the color, because currently, it's white). I'm using this code : mShareActionProvider = (ShareActionProvider) item.getActionProvider(); Intent myIntent =…
deveLost
  • 1,151
  • 2
  • 20
  • 47
6
votes
4 answers

Handle ShareActionProvider onClick event

How I can get onClick event of a ShareActionProvider menu item? My application shows some images in a gallery (fragments with imageView) and I need get the onClick event to load the current image from cache, generate a temp file and share it. My…
Eric Waideman
  • 71
  • 1
  • 4
6
votes
3 answers

Styling the Share Action Provider in Android

Here is how I share the content through Share Action Provider: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "Check the Link : " +…
6
votes
1 answer

I Use ShareActionProvider in PopupMenu, but show two PopupMenu?

I use a ShareActionProvider in a PopupMenu, but when I click the share menu item, it shows two PopupMenus on the screen, one covered by the other. And one shows the application icon and name, the other one only shows the application name. It works…
Limp
  • 319
  • 1
  • 2
  • 8
6
votes
2 answers

how do i get my ShareActionProvider to submit text Dynamically (from listeners) view pagers etc

I am using Sherlock Library Action Bar, which is similar to the ICS action bars, the place where I am stuck is this @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add("Save") …
5
votes
2 answers

Toolbar ShareActionProvider theme is always dark

I'm trying to add share action to my toolbar. Toolbar is supposed to be orange (or transparent like in this case) with white text and icons, so I'm using this view as Toolbar:
5
votes
1 answer

ShareActionProvider appearance

I have android.support.v7.widget.ShareActionProvider menu in my ActionBar. When I click "Share", the app list appears as a popup menu. When I click "Share" in Google Play Newsstand, the app list appears as a bottom sheet that can be pulled up. Can…
5
votes
0 answers

onPrepareSubMenu in a custom ActionProvider never called

Before I ask the question let me give some additional info: I have a Fragment which adds a MenuItem in the onCreateOptionsMenu. The added MenuItem also has a custom ActionProvider added to it. The custom ActionProvider doesn't use a ActionView but…
Gerald Eersteling
  • 1,244
  • 14
  • 28
5
votes
2 answers

Android ShareActionProvider work in debugging mode but doesn't in real device

When I debug my app on device, using Eclipse, this is the result, that is what I want: App image from debug mode The 'share icon' works fine! HERE, THE PROBLEM!!!! WHEN I ADD THE APP ON GOOGLE PLAY, AND THEN I INSTALL THE APP FROM IT, THIS IS THE…
5
votes
1 answer

Removing YourSelf from the ShareActionProvider list

I'm using ActionBarSherlock in an app along with a ShareActionProvider. I'm using a share intent to share images in a manner very similar to the ActionBarSherlock example: Intent shareIntent = new…
5
votes
4 answers

Share image and text through whatsapp

I use the following code to share an image and text through WhatsApp. It only shares the image, not the text, however. I have searched all over the Internet, but haven't found a solution. String message = Fname + Mobileno + Homeno + Workmail +…
Basim Sherif
  • 5,384
  • 7
  • 48
  • 90
1
2
3
10 11