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
1 answer

code not working with shareactionprovider but same code work with menu option

I am using shareactionprovider to share the text but cannot get it to work.The same code works fine with the menu option. When I share text using shareactionprovider text is not shared but when I share same text using menu share option text gets…
user2898347
  • 47
  • 1
  • 3
0
votes
2 answers

ShareActionProvider not working with ActionBarSherlock types?

I've tested my code with native types. It gives me correct output as shown below. However, when I change to ActionBarSherlock types, I get following error: android.content.res.Resources$NotFoundException: Resource ID #0x0 at…
0
votes
1 answer

Can I share a text file via a ShareAction without writing to disk?

I want to dynamically create a text file (.txt) object to share plaintext via a ShareAction but I want to keep the whole file object in memory - I don't want to write anything to disk. Is this a job for a BufferedOutputStream? A MemoryFile perhaps?…
IAmKale
  • 3,146
  • 1
  • 25
  • 46
0
votes
0 answers

Share image with ShareActionProvider from Universal Image Loader

I'm using UIL to display images in a gridview. When one is selected it displays in a fullscreen window (UIL's ImagePagerActivity class) This screen allows you to flip through the available pictures. I want to use the ShareActionProvider in the…
JeffK
  • 247
  • 1
  • 5
  • 18
0
votes
1 answer

Android ShareActionProvider failed to share to Facebook

I try to use ShareActionProvider (support.v7) to perform sharing for my app. All apps, such as Gmail, Evernote, et. al, work fine - except Facebook. I don't know what the problem is. Here is my code snipet: @Override public boolean…
user2761885
  • 327
  • 1
  • 7
  • 13
0
votes
1 answer

sharing an Image through an actionProvider: what's wrong?

I'm trying to share an image through an shareActionProvider, but every App I try to share the file with, seem not to take care of the file: the selected app will be open, but after that I don't see any image (i.e. skype opens itself but does not…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
0
votes
2 answers

Android - ShareActionProvider exception inside a try/catch crashed the app

I have this code in a class that uses ShareActionProvider @Override public boolean onCreateOptionsMenu(Menu menu) { try { getMenuInflater().inflate(R.layout.menu, menu); MenuItem item = menu.findItem(R.id.menu_item_share); …
Genadinik
  • 18,153
  • 63
  • 185
  • 284
0
votes
1 answer

Android - share button not responding

I have this intent Button share = (Button)findViewById(R.id.share); share.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { //createShareIntent( ); } …
Genadinik
  • 18,153
  • 63
  • 185
  • 284
0
votes
3 answers

Detecting sharer app when using share action provider

Is there any way I can detect which sharer app is selected when using share action provider,so that I can send different messages for different apps? I am using following method for share action provider, mShareActionProvider =…
Basim Sherif
  • 5,384
  • 7
  • 48
  • 90
0
votes
1 answer

How can my custom ActionView/ActionProvider be notified when the action bar is cramped?

I've implemented a custom ActionProvider, not unlike the ShareActionProvider. It is however a bit wider because I included a text label that is not present in the ShareActionProvider. I've noticed that regular action items (with…
pjv
  • 10,658
  • 6
  • 43
  • 60
0
votes
1 answer

Why is my ShareActionProvider not clearly outlined and its menus gray?

I'm using a ShareActionProvider, defined in code, not xml, on a dark action bar (Theme.Holo/DeviceDefault.Light.DarkActionBar). This is what I'm seeing: Note that there is almost no visible hint that the share icon and messenger icon belong…
pjv
  • 10,658
  • 6
  • 43
  • 60
-1
votes
1 answer

Share Action provider to share image from imageView gives null pointer exception

I tried to share an image loaded into the imageview from glide following this guide, it gives me a null pointer exception. I've posted the code and stacktrace below, it MainActivity.java public class MainActivity extends AppCompatActivity { …
Nobody
  • 397
  • 1
  • 5
  • 25
-1
votes
1 answer

copying api source into project in android

I am trying to modify the behavior of ShareActionProvider in android such that it does not show history. In this process i need to copy source code of ShareActionProvider, ActivityChooserModel and ActivityChooserView into my android eclipse project.…
Anup Warnulkar
  • 773
  • 1
  • 8
  • 25
1 2 3
10
11