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

Android Sherlock Action - ShareActionProvider Icon

I am using ShareActionProvider in my Sherlock ActionBar. I want to change the icon but not able to do so. XML
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
2
votes
1 answer

Share different text depending on the share target

My app shares some text describing my current GPS location - something like: I am at 33° 58' S 18° 27' W. I am using the ShareActionProvider as is the current "correct" way to do this. And the sharing is working 100%, as expected. Life would be…
Richard Le Mesurier
  • 29,432
  • 22
  • 140
  • 255
2
votes
1 answer

NullPointerException on setShareIntent using ActionBarSherlock

I'm trying to use ActionBarSherlock + ShareActionProvider in a SherlockActivity. I've already checked this ( NullPointerException using ShareActionProvider + actionbarsherlock) but it doesn't solve my problem. I think the code is correct, but I keep…
1
vote
2 answers

Show share menu like other apps on my android phone

I have added share action on my app's actionbar and followed these steps: http://www.codewithasp.net/2016/11/share-action-provider-android-application-actionbar-appcompat-v7.html This is showing a nice simple looking share menu on my actionbar. But…
Nikhil Gaur
  • 1,280
  • 3
  • 19
  • 40
1
vote
0 answers

How to customize ShareAction layout for android

How do i achieve something like this? Android's default is like this .. Any libraries for this? Please help
1
vote
0 answers

Android ShareActionProvider selecting image from gallery and share?

So i've been stucked for 2 days trying to figure out how to do the sharing function through android app using ShareActionProvider. public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is…
1
vote
1 answer

I'm using Viewpager fragment and want to use "ShareActionProvider" on its Nested Fragment..! Is it possible?

there is Viewpager used in my code in which 4 Fragments. when I click on Any Fragment Item it will redirect to another fragment class in which I want Share Action to be used.. But it didn't Support.. @Override public void onCreateOptionsMenu(Menu…
1
vote
0 answers

How to share a generated photo from an Android app without storing a file

I have an Android app that generates photos based on a math formula. I'd like to share these photos ideally with the ShareActionProvider. Constraints: - Do not create files in the file system. - Do not require any permissions. (My app requires zero…
Thomas Fischer
  • 1,394
  • 2
  • 12
  • 25
1
vote
1 answer

Android setting share option visibility on fragments managed by tabs in sliding tab layout

I have been struggling to implement switching visibility of Share option on Menu between fragments. I am using sliding tab layout and has a fragment in each of the 2 tabs. First tab (uses list view) and when an item is selected, I am setting a flag…
1
vote
1 answer

Adding a share action into a preference screen

I am simply trying to add a ShareAction in my preference screen. I have created a Preference category called share, and I am trying to make it so that when you click on share it brings up the ShareAction. I cannot find anything that explains how to…
0xOsiris
  • 247
  • 2
  • 17
1
vote
2 answers

MenuItemCompat cannot resolve

package com.example.dylan.sunshine; import android.app.Activity; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import…
Dylan Gomes
  • 93
  • 11
1
vote
1 answer

How do I change the colour of ShareActionProvider?

I am using a android.widget.ShareActionProvider to show a share icon on my menu bar. However, my menu bar background is white and I would like to make my icon black. Is there a way to do it?
1
vote
0 answers

Override action bar share button onClick

I'm setting up a share button using the onCreateOptionsMenu and ActionShareProvider. I setup the initial intent at onCreate but I'm looking for a way the update the ShareActionProvider intent (refresh intent EXTRA) when user clicks the share icon on…
GordonW
  • 1,120
  • 2
  • 16
  • 36
1
vote
0 answers

Some GridView cells fade and disappear after ShareActionProvider intent

I have a GridView where each cell is a thumbnail, a filename and a checkbox. To populate the grid I use a CustomCursorAdapter: The CustomCursorAdapter extends CursorAdapter. I have a floating button that launchs the system camera. If I take a…
1
vote
2 answers

ShareActionProvider not doing anything

I have been following the Android Development course on Udacity, and got to a lesson where we were to implement a ShareActionProvider. After attempting it myself, and then following what they did--I'm certain it's not working properly. I'm putting…
Nxt3
  • 1,970
  • 4
  • 30
  • 52