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

how to share images using view pager

public class EyeLinerActivity extends Activity { int position; private ShareActionProvider provider; ELImageAdapter adapter; @Override public void onCreate(Bundle savedInstanceState) { …
user4440416
  • 71
  • 1
  • 11
0
votes
1 answer

Action Share Provider (java.lang.NullPointerException)

Hello Everyone My app's below code is executing if i comment the setShareIntent(); statement but the app crashes when i uncomment it! Could anyone please look into the code and help me rectify my mistake as i've been trying to find a solution since…
Siddhivinayak
  • 1,103
  • 1
  • 15
  • 26
0
votes
2 answers

Android share action doesn't do anything

I'm following a course on Udacity on building an Android app (weather, in this case). I've been having trouble implementing a Share action. After getting some advice from another forum, I changed the min SDK version from 10 or 11 to 17, since this…
spartanhooah
  • 183
  • 4
  • 15
0
votes
2 answers

ShareActionProvider doesn't share text from Intent with Facebook

I'm using a ShareActionProvider(android.widget.ShareActionProvider) to share simple text. It works fine with Gmail, WhatsApp etc but not with Facebook... It doesn't share the text attached to the Intent, instead it just ask the user to write a new…
Makoto
  • 1,455
  • 4
  • 13
  • 17
0
votes
0 answers

Delete Last Item of Share Action Provider

I have implement the ShareActionProvider in my Android Application. This work fine, but i want to delete the icon of the last item that used, at the right of the button, like this : This is my configuration : Menu :
Tom59
  • 125
  • 3
  • 14
0
votes
2 answers

ShareActionProvider - send string with link

Couldn't find the answer to my problem, so here is my question: I have an app storing debts and where i can send the debt info to anyone using ShareActionProvider in the actionbar. It all works fine, i can send a string via, let's say, whatsapp. So…
NicolaF
  • 127
  • 1
  • 11
0
votes
1 answer

ActionProvider to open browser

I would like to add a ShareActionProvider to my ActionBar according to this example. But I can not find any example that sets the Intent that consumes an URL/URI and opens the browser once the user clicks on the menu item. private…
Matthias
  • 5,574
  • 8
  • 61
  • 121
0
votes
2 answers

ShareActionProvider is null

I have been searching for 3 or 4 days about a solution on this. I have tried: Null Pointer exception in using support library share action provider or why MenuItemCompat.getActionProvider returns null? and some others but still I get null on…
0
votes
0 answers

Android native share (ShareActionProvider) bouton with XDK API?

Is it possible to use the Android native os share (ShareActionProvider) bouton with XDK API or Cordova?
0
votes
1 answer

Share button on ActionBarSherlock

i'm a noob developer...I hope that someone can help me with this problem. I'm going to add a share button to my actionbar (ABS) but I've some problems my actionbar menu XML
0
votes
1 answer

ShareActionProvider gives error with Theme.Sherlock.Light.DarkActionBar?

I want actionbar share provider in one of my activities, and i have Theme.Sherlock.Light.DarkActionBar as baseTheme. Here is how i create share option on activity: @Override public boolean onCreateOptionsMenu(Menu menu) { ShareActionProvider…
yahya
  • 4,810
  • 3
  • 41
  • 58
0
votes
1 answer

Sending a pic from an app with Action Send

I want to make an app with pics and make it possible to share one or some of these pics over whatsapp, gmail, mms whatever... Half of the way I was able to code. My problem now is I have one image in the app for testing(made with ImageView) pic is…
user3422978
0
votes
2 answers

NullPointerException using ShareActionProvider with Android Support Libraries

I followed Google's directions to the letter (http://developer.android.com/guide/topics/ui/actionbar.html#ActionProvider) and yet I couldn't make it work. I'm trying to add a share button the the action bar. Here's my code: MyActivity.java import…
mr_hyde
  • 505
  • 1
  • 6
  • 11
0
votes
1 answer

ShareActionProvider with a ListFragment

I would like to use a ShareActionProvider to share the contents of my ListFragment (which consists of text entries from an ArrayAdapter fed with a ArrayList). How do I do this? I know that I will have to create a new Intent and to use…
0
votes
2 answers

add only specific apps to shareactionprovider

ShareActionProvider provides share for every compatible app on the device. I would like to specify which apps I want to allow sharing, like only twitter and gmail for example. How would I do this?
TrtG
  • 2,778
  • 6
  • 26
  • 39
1 2 3
10
11