Questions tagged [share-intent]
106 questions
1
vote
1 answer
Share a link with a thumbnail in android
I'm trying to implement a share that will send a dynamic link, a title and an image. As a start I want it to work with WhatsApp. I implemented the share intent as per the documentation:
Intent sendIntent = new Intent();
…

user3917631
- 119
- 1
- 9
1
vote
0 answers
Facebook Android application is unable to accept the EXTRA_TEXT fields
When using the built-in Android sharing module, the Facebook Android application is unable to accept the EXTRA_SUBJECT and EXTRA_TEXT fields.
val sharingIntent = Intent(Intent.ACTION_SEND_MULTIPLE)
…

Rajesh
- 135
- 7
1
vote
0 answers
Why does my android shareIntent not work?
I have a soundboard app and am trying to enable the user to share the sounds from my res/raw folder. My code seems to properly create a folder and copy the resource into it. However, when trying to share, I always get an error from the external app.…

Samuel Wittlinger
- 15
- 1
- 4
1
vote
0 answers
Launching share-activity multiple times on Android when using the singleInstance: Getting always the first URL
I have an Android-app in which I can save URLs from the browser via the share-functionality (I created a second share-activity with a send intent-filter)
I tried to change the launchMode to all four different options, it works if on standard or top,…

pixx
- 87
- 1
- 10
1
vote
1 answer
Android PDF not accepted when sending as Intent.ACTION_SEND
I have a PDF file I am trying to share through Intent.ACTION_SEND. Though when I click on one of the options (gmail, google drive, etc). It says "Request contains no data."
**Updated Code Below
case R.id.share_item:
final Intent…

C. Skjerdal
- 2,750
- 3
- 25
- 50
1
vote
1 answer
How to generate Product link?
I want share url of product, product name to some user using either what's app or facebook etc.when user clicks on that product same product page in app should be opened if app is installed. if app is not installed it should navigate to play…

lasya valiveti
- 251
- 3
- 12
1
vote
1 answer
Android (share button) crash in startActivity for Intent.createChooser works with most of phones except pixel
I'm doing app to share a png image to facebook and all, the code works fine in my Huawei Honor 8 and crashes with the google pixel 2.
code:
showLoading("Saving...");
File f = new File(Environment.getExternalStorageDirectory()
+…

Waged
- 372
- 3
- 14
1
vote
1 answer
My app is not visible in share dialog even with intent filters in place
I'm working with a team that's developing an app with a feature to share images into our app.
Now, when I wrote this feature on a separate project, it worked smoothly and I was able to see my test app in the share dialog of other apps. But when this…

artofshashank
- 93
- 2
- 9
1
vote
1 answer
Getting different bitmap size on same device when creating from different screen
I am getting different bitmap size from the same device .
First, I am creating from activity and another I am creating from item click in recylerview.
Here I am getting height around 1350.
Below is acitivity screen shot.
Here I am getting bitmap…

Jishant
- 574
- 3
- 14
1
vote
2 answers
Share intent not working in android marshmallow
I am using the below code for share content in android app, the code is working properly for android 7.+ but not working for marshmallow(6.0.1). please suggest.
shareNow.setOnClickListener(new View.OnClickListener() {
@Override
…

user7997603
- 21
- 5
1
vote
7 answers
Share image with action send
So i am trying to use Intent.ACTION_SEND to share an image from my app.
This is the code I am using
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, shareImgURI);
…

pavlos
- 547
- 1
- 9
- 23
1
vote
1 answer
Change default photo picker intent text?
Photo picker intent:
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, SELECT_PHOTO);
The text, shown below, currently says "Complete…

Martin Erlic
- 5,467
- 22
- 81
- 153
1
vote
2 answers
Android sharing intent is not working in some apps
I have to share image with text to all social medias. So I tried below code:-
share.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Uri uri = imageUrl;
…

max
- 263
- 2
- 16
1
vote
2 answers
Android Share Intent Image Sharing not working
I am new to Android and is having problem sharing image through share intent. I have googled alot, tried various things but still could not find the solution.
My code is:
Intent shareIntent = new Intent(Intent.ACTION_SEND);
…

kashif789us
- 474
- 8
- 23
1
vote
0 answers
Trouble opening FB page from my android app
I am using following code to open a facebook page from my android app. Its opening the page using my Fb app but the page opened is not exactly the fb page. Its more like about section. Screenshots attached.
public static String FACEBOOK_URL =…

Khubaib
- 103
- 4
- 12