Questions tagged [share-intent]
106 questions
1
vote
2 answers
Trying to send a pdf using cwac provider
I can't quite get cwac to work, and looking at the demo code hasn't helped. I'm simply trying to export a pdf through a share intent. Currently the output is a "Can't attach empty file" error. But the file does exist, and I can't tell if the problem…

NappyXIII
- 195
- 2
- 17
1
vote
3 answers
process has stopped during share image
I want to share image in android. I examine a lot of code to do that but all codes make application stopped .the logcat error is as below:
05-08 22:17:33.656 25125-25125/ir.whc.news E/AndroidRuntime: FATAL EXCEPTION: main
05-08 22:17:33.656…

MSepehr
- 890
- 2
- 13
- 36
1
vote
1 answer
share actionbar button crashes when sharing image with other apps
I have developed a actionbar share button, however when I run the app the button does work but it crashes the application when I try to share the images with other apps. For example if I share the image with Twitter or message the application just…

Maddie_J
- 171
- 3
- 15
1
vote
1 answer
Image get stored in internal storage while sharing images in android
Im creating on application in that application am sharing layout like image. while am sharing am converting layout into image and sharing in social network, but issues is image getting stored in internal storage, how to delete after sharing an…

developer
- 319
- 1
- 4
- 15
1
vote
3 answers
how to put share app option ( which is not publish yet ) in android
I am trying to publish app for the first time.
I want to put a share button in my app, when the user clicks it will open up all the messaging apps, and can share the link to others, when the other person clicks on it, it will take to my app in the…

OnePunchMan
- 720
- 15
- 33
1
vote
1 answer
Error trying to share image in assets with third party chat app
I am trying to get the StreamProvider to share images in my assets/stamps folder, but am doing something wrong. Sorry for asking such a trivial question. Using the demo as an example this is where I am at.
manifest file

user3074140
- 733
- 3
- 13
- 30
1
vote
0 answers
what will be the format of message to share on whatsapp , so user can select particular text
As I am sharing image and text on whatsapp but not able to select particular text.. is there any workaround so i can copy on particular text on whatsapp ..As whatsapp doesnt give this option to copy part of a conversation but may be is there any way…

Poonam Kukreti
- 359
- 5
- 19
0
votes
0 answers
Android Share image from Url using Coil
My app is using Coil to load the image from external URL, when Coil loads the image I want to add option to share this image, but I do not want to ask the user for any permissions (a bit of overkill to ask for storage permission to share image),
is…

Coder123
- 784
- 2
- 8
- 29
0
votes
0 answers
how to allow shared intent to save, copy and print option in android
Is there any way to create default share intent which allow save, copy and print option in intent chooser. Need help.
URL pdfUrl;
try {
pdfUrl = new URL(pdfData.getFile());
…

VishaL RaJpuT
- 1
- 1
0
votes
1 answer
Android (Kotlin): FileProvider to share mp3 file
I am coding an app that shows some mp3 files in a card view and I am trying to set a "Share" button to send the files to other apps, one by one. I am using FileProvider. I managed to share a text, but I can't do it with my files. I am accessing all…

Atenea
- 11
- 2
0
votes
1 answer
How to share image from viewpager?
GalleryAdapter class
public class GalleryAdapter extends RecyclerView.Adapter {
private Context context;
private List images;
protected PhotoListener photoListener;
public GalleryAdapter(Context…

Daly
- 31
- 4
0
votes
1 answer
How a shared link is copied automatically in TextField( ) in Flutter?
So I'm making an app where I want to share youtube links using my app as a post.
I've done the receive-share-intent correctly but the youtube link which I get, I want it to get stored in a TextField.
For example - When we share a youtube link with…

Sarvang Lokhande
- 3
- 2
0
votes
0 answers
Saved image in paint application is not sharing & showing "Sharing failed, please try again later toast is showing"
"Sharing failed, please try again." toast is showing on clicking on the apps to share the image. The image is saving in my phone but it can't be shared. Made the xml directory & new resource file path.xml , added this to the mainfest file & created…

Nandini Agarwal
- 91
- 1
- 10
0
votes
0 answers
Failed to find configured root that contains /file:/storage/emulated/0/BackgroundRemover/1639931544873.jpg
what i am trying to do
I have captured a screenshot of an activity and have stored it in my sdcard/BackgroundRemover folder and trying to share(share Intent) it to other app using file provider using the path where it was saved !!
here is…

Bin jafar
- 1
- 2
0
votes
0 answers
Intent.createChooser is multiplying chooser after canceling and share again
I am sharing an image with text when I swipe right a RecyclerView item like below;
viewModel.shareUri.observe(viewLifecycleOwner,Observer{
val shareIntent = Intent(Intent.ACTION_SEND);
shareIntent.setType("image/png");
…

emreturka
- 846
- 3
- 18
- 44