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
3
votes
3 answers

ClassCastException : android.support.v7.widget.ShareActionProvider

I am trying to implement ShareActionProvider but getting : 02-20 04:14:28.894: E/AndroidRuntime(1145): Process: com.learn2crack.tab, PID: 1145 02-20 04:14:28.894: E/AndroidRuntime(1145): java.lang.ClassCastException:…
Sun
  • 6,768
  • 25
  • 76
  • 131
3
votes
1 answer

ShareActionProvider from support v7 library doesn´t work

I am trying to implement ShareActionProvider using support library from this tutorial http://developer.android.com/reference/android/support/v7/widget/ShareActionProvider.html Somehow it just doesn´t work as expected. Below is my code: menu xml…
Roman
  • 2,079
  • 4
  • 35
  • 53
3
votes
1 answer

ClasscastException android.support.v7.widget.ShareActionProvider to action.view.ActionProvider

Below is my Activity Code. The problem is that i am not able to use AppCompat library properly and its giving me ClasscastException android.support.v7.widget.ShareActionProvider to action.View.ActionProvider import android.content.Intent; …
Anuranjit Maindola
  • 1,507
  • 1
  • 14
  • 30
3
votes
1 answer

Android ShareAction Provider null pointer

i am getting null pointer in share action provider because it's expecting an image at start of app. i can provide it only later. Here is my code @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate menu resource file. …
vineet
  • 269
  • 1
  • 4
  • 18
3
votes
1 answer

Change the background of the ShareActionProvider's view

I want to change the background of the ShareActionProvider's view that gets put into the ActionBar as a MenuItem. I can't seem to find the right attribute in styles to do this. I need to change the background of the entire thing, like so:
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
2
votes
2 answers

Share in Android

I'm working on a simple app and need to add share feature to it. I just need to share result of the game on FB, Twitter and G+. If anyone can help, how can I implement this into my app? Thanks in advance..
gtboy
  • 128
  • 1
  • 3
  • 12
2
votes
0 answers

Android - share menu item not clickable

Environment: Android API 25 Android Studio 2.3.3 I'm trying to add share item to menu and this is my code, I've tried these solution and searching for three days but it doesn't solve my problem Unable to cast Action Provider to Share Action…
Poula Adel
  • 609
  • 1
  • 10
  • 33
2
votes
1 answer

Unable to click on ShareAction Provider

I am trying to click on the ShareActionProvider button on my mobile, but it is completely unresponsive. None of the sharing apps such as texting or emailing pop up. I've labeled the ShareActionProvider as menu_share in my xml file, and am using the…
Brian
  • 189
  • 3
  • 13
2
votes
2 answers

Unable to import ActivityChooserModel

For some reason, I am unable to access the ActivityChooserModel class in my Android activity. I am trying to access it as follows: ActivityChooserModel dataModel = ActivityChooserModel.get(this,…
2
votes
2 answers

Setting a custom background color on Actionbar ShareActionProvider dropdownlist

I'm trying to set a custom background color to ShareActionProvider dropdownlist, I already changed holo actionbar color using this http://jgilfelt.github.io/android-actionbarstylegenerator/ As you can see the highlighted point at below image I could…
2
votes
1 answer

Android - Share Remote Image without Downloading

Is it possible to share a remote image with a ShareActionProvider without downloading the image? I'm currently downloading the remote url image first and then sharing that via the explanation found here:…
John Shelley
  • 2,655
  • 3
  • 27
  • 36
2
votes
1 answer

Themeing the Popup of the ShareActionProvider from ActionBarSherlock

I want to theme the ShareActionProvider of the ActionBarSherlock. My problem is that I successfully customized the styles of the ActionBar but I cannot style the share popup which comes from the ActionBarSherlock. In the Screenshot above you can…
rekire
  • 47,260
  • 30
  • 167
  • 264
2
votes
1 answer

ShareActionProvider icon in actionbar

I have implemented the share icon in the actionbar. After you press on it, and then pick which source you want to share it to, the icon widens and shows the last source you shared with. I don't want the second icon to pop up after they select a…
DDukesterman
  • 1,391
  • 5
  • 24
  • 42
2
votes
2 answers

Android ShareActionProvider Image Problems

I am trying to send an image from an app that I am developing, I have the following code but am stuck as to how to create a Uri from a file that is in my /drawable folder, any ideas? (Very confused at this point) @Override public boolean…
Mustafa Nasser
  • 251
  • 1
  • 4
  • 15
2
votes
2 answers

Hide the share action icon near the share action provider WITHOUT ActionBarSherlock

I'm quite new to Android development and I'm trying to build an ActionBar with the ShareActionProvider, using the "stock" ActionBar (i.e. not using ActionBarSherlock), because I want to target ICS+ devices only. I would like the history function…
virtualdj
  • 413
  • 6
  • 18