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
5
votes
0 answers

ShareActionProvider with one icon - looking as simple actionitem

I want to dislay ShareActionProvider on ActionBar, but with custom look&feel. Only one simple share icon without borders and without most used app icon on the right. But providing popup menu with most used applications. Is there a simple way to do…
pcu
  • 2,745
  • 4
  • 18
  • 22
4
votes
1 answer

share menu using android.support.v7 doesn't show the apps icons

I'm trying to share a simple text using ShareActionProvider with android.support.v7 to put a Share-button in the ActionBar. My App must work with minimal API Level 8. The Problem: When I emulate the code with API 19 (targel level) it works fine, but…
4
votes
1 answer

How to share dynamic text in android ShareActionProvider

I want to share dynamic text using ShareActionProvider. I'm using this code in my Fragment: @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.detailfragment, menu); MenuItem menuItem =…
4
votes
4 answers

ActionBarSherlock & ShareActionProvider cause InflateException

I'm a building an app that uses ActionBarSherlock and it's ShareActionProvider for generating an Intent to other apps. I created the item based on the sample code from the library's github page; at first, I worked flawlessly. However, a day after…
4
votes
1 answer

Passing URL from WebView to ShareActionProvider?

I want to take whatever page the user user is on in my WebView and allow them to share the URL with FaceBook/etc as a ACTION_SEND intent. I tried this but obviously the URL doesn't exist in the onCreateOptionsMenu. How can I move it to the…
wilxjcherokee
  • 573
  • 2
  • 8
  • 17
4
votes
1 answer

ActionBarSherlock ShareActionProvider Issue

ActionBarSherlock (ABS) is built from the latest source. I have an exception being thrown when I use the ABS ShareActionProvider. I can step through onCreateOptionsMenu() debugging just fine. If I take out the xml for @+id/menu_item_share the apk…
4
votes
1 answer

Android: custom XML for ShareActionProvider

I need to create a custom ShareActionProvider menu for my Android app, because when I specify the default one, I get only "Messaging", "Bluetooth" and "Gmail", and I only want "Facebook", "Twitter" and "Email". How can I do this? Do I need to…
noloman
  • 11,411
  • 20
  • 82
  • 129
3
votes
2 answers

Same codes do not work in release mode (android share menu)

Following codes work perfectly in debug mode: menu_post_view.xml
Mirjalal
  • 1,292
  • 1
  • 17
  • 40
3
votes
2 answers

ShareActionProvider Shows two Icons A System Icon And A share Icon

I am adding a Share Action Using the Code Below
E_K
  • 2,159
  • 23
  • 39
3
votes
2 answers

How to exclude the application itself from Android share (ShareActionProvider)

I made a share function in a App called GovDic. But in the share list, the application itself appeared. How to exclude it from the share? I need share text/plain content to other App, also other App can share text/plain content to this…
J.W
  • 671
  • 7
  • 23
3
votes
0 answers

Cannot instantiate class: app.support.v7.widget.ShareActionProvider

I'm trying to use ShareActionProvider in DetailFragment class. public static class DetailFragment extends Fragment { private static final String LOG_TAG = DetailFragment.class.getSimpleName(); private static final String…
gunsmoke
  • 51
  • 5
3
votes
1 answer

Set color of ShareActionProvider

I defined a color for my whole app (a dark grey) and so when I click on the ShareActionProvider, a black list shows up but the text color is dark grey too (and so not really visible). The text in the ActionBar is white, but not the one in the…
ValLeNain
  • 2,232
  • 1
  • 18
  • 37
3
votes
0 answers

ShareActionProvider Rewrite

I am trying to modify the ShareActionProvider function, so that I can intercept the onClick event and prepare the content that I want to share and then call setShareIntent(). So far, I've just copied the source code for ShareActionProvider() to…
Gary Kipnis
  • 722
  • 14
  • 33
3
votes
2 answers

Android ShareActionProvider with popup menu - undesired duplicate list

Okay this is a pretty specific one: My ShareActionProvider is being used on posts in a forum. It works (apart from pesky facebook but I understand that is a well-known issue). However, when I select the share option from my pop-up menu, two lists…
Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135
3
votes
2 answers

Null Pointer Exception - android.support.v7.widget.ShareActionProvider

I am writing a simple program for last 2 hours, but did not get any solution of this small issue, using below code: MainActivity.java:- @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main,…
Sun
  • 6,768
  • 25
  • 76
  • 131
1 2
3
10 11