Questions tagged [share-intent]

106 questions
0
votes
0 answers

Share video to WhatsApp and other apps using Android Intent (Java)

I want to implement share video to whatsApp and other app feature using Android Intent system. I have been looking for it for last 2 days but I did not get proper solution and some solutions I found on StackOverFlow, they no longer work I…
0
votes
1 answer

SHARE INTENT Intent.createChooser: How to display all installed file browser apps?

I want to display all installed file browser apps when the user press a button "browse files" in my app, but without passing it any file, I just want to open a file browser. Also I don't want to wait for a file chooser or any other result. I just…
0
votes
1 answer

Receiving share intent in Flutter (Receiving URL)

I am trying to make a Flutter app that will receive share intent from the browser. I was able to find a package that lets me receive intents like text, image, video and links but what I need is the URL of the content's origin. For example if I share…
GCnomore
  • 104
  • 2
  • 6
0
votes
1 answer

singleTask app doesn't reuse the Task already present in recent apps when started with startActivityForResult method

I have two android apps, lets call them app A and app B. Inside app A I create a share intent as follows: shareIntent=Intent.createChooser(sendIntent, null); // sendIntent contains data to share. this will be used to pass data to app B. App B's…
0
votes
2 answers

Call Android share intent from JavaScript in webView

I am trying to use the code of this article to launch the share intent of my Android app (kotlin) from a JavaScript in a webView. Here is the code I use to start: class MainActivity : AppCompatActivity() { object AndroidJSInterface { …
ceyquem
  • 2,079
  • 1
  • 18
  • 39
0
votes
0 answers

Inconsistent resultCode when copy to clipboard is pressed on a ShareIntent

It seems like I'm getting an inconsistent result code when creating an Intent with the Intent.ACTION_SEND action. I've created a new project ("Basic Activity") and added the example from Google for "Sending simple data to other apps": public class…
MikeL
  • 2,756
  • 2
  • 23
  • 41
0
votes
0 answers

How to share text and image using android share intent?

I want to share Image and text using andoroid share intent. In Existing Code, It share "null.bin" file for whatsapp and for gmail "couldn't attach file" error. String msg = title + "\n\nDownload the app now & Register using link:\n "+…
0
votes
2 answers

How to handle different type of content uri

I want to get image URI from another app like a gallery, google drive, whats app etc I have registered following intent filter :
droid
  • 83
  • 1
  • 1
  • 8
0
votes
1 answer

Unable to read files Uri shared by other app i.e. Whatsapp

When file is shared by other apps via FileProvider then the Uri received in my app is not readable. If i try to get file path or create file from it then it says file doesn't exist. The sample Uri is from whatsapp is…
Usman Rana
  • 2,067
  • 1
  • 21
  • 32
0
votes
0 answers

is there any code missing, when i share file from raw folder file name showing document and format changed automatically

I want to share mp3 file from raw folder to social apps. When I share on whatsapp, its showing fie name is document/ Untitled and file format change automatically. ib1.setOnClickListener(new View.OnClickListener() { @Override …
Synonian_raj
  • 154
  • 1
  • 13
0
votes
1 answer

How to share audio file to multiple apps

String sharePath = dataSavingModels.get(pos).getPathOfRecording(); Uri uri = Uri.parse(sharePath); Intent share = new…
0
votes
1 answer

Send multiple text items in ShareIntent?

My question is very similar to these ones: Is it possible to share multiple text by using share intent? Passing Multiple text/plain values in share intent I've tried the suggested solutions and it hasn't worked. I'm trying to send two items: "name"…
LeadBox4
  • 83
  • 2
  • 11
0
votes
0 answers

Is there any alternative for Android Share intent not working after 5.0 poperly?

I am creating message having text and url. But when I call share intent it only shows Extra text (that is for link) , doesn't show extra subject( that is for text), is there any solution for that?
0
votes
1 answer

Android share text to other application with ACTION_SEND

I want to share a text to another application and want to if text successfully sent then result in code equal 1 and else result in code equal 0 and if result code equal 1 then do something but ACTION_SEND do not return anything.do you have an…
0
votes
2 answers

Having trouble sharing an image with an android intent

I am trying to get a image of a view (constraint-layout) and share it via an android send-intent. I tried a lot of methods, but until now none have worked. This is what I have so far: public void shareStatsImage(){ …
jonasxd360
  • 1,225
  • 4
  • 19
  • 35