Questions tagged [android-intent-chooser]

An Intent to choose from different app options to resolve your request.

Example of usage:

Intent intent = new Intent(Intent.ACTION_SEND);

// Always use string resources for UI text.
// This says something like "Share this photo with"
String title = getResources().getString(R.string.chooser_title);
// Create intent to show chooser
Intent chooser = Intent.createChooser(intent, title);

// Verify the intent will resolve to at least one activity
if (intent.resolveActivity(getPackageManager()) != null) {
    startActivity(chooser);
}

Reference to Android page

111 questions
0
votes
1 answer

react native send intent openFileChooser option with http url not working

I am using react-native-send-intent library to open image with default option but it is not working, here is my code SendIntentAndroid.openFileChooser( { subject: "File subject", fileUrl:…
Priya
  • 1,410
  • 14
  • 22
0
votes
0 answers

FileNotFound(Invalid Path) in Implicit Intent File Sharing

I am trying to access a file from Movies Directory named "myfile.mp4" for sharing using implicit Intent but this is not working.. I think i am not getting the correct path? right? My code Intent intent = new Intent(Intent.ACTION_SEND); …
nirazverma
  • 1,001
  • 10
  • 15
0
votes
1 answer

How to open chooser intent of whats app and gmail only to send an attachment document in kotlin

I need to send the document created from my app to only gmail and whatsapp. for whatsapp I got the working code, val filelocation = GlobalVariables.getMyFilePath(this, "dummy_file.mem") val uri = Uri.parse(filelocation.absolutePath) …
Vikas Acharya
  • 3,550
  • 4
  • 19
  • 52
0
votes
0 answers

Android createChooser is showing duplicate Apps with Different purpose?

Android Chooser is showing duplicate apps when trying to share an image with Text. Uri uri = FileProvider.getUriForFile(getBaseContext(), getApplicationContext().getPackageName() + ".fileprovider", inviteImagePath); …
Aman Verma
  • 3,155
  • 7
  • 30
  • 60
0
votes
0 answers

How to open Android Image Picker somewhere other than "Recent"?

I'm using the following code to open an image picker on Android. Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); fragment.startActivityForResult(Intent.createChooser(intent, "Gallery"),…
0
votes
0 answers

Problem while Sending Binary Content to other Apps

I Just want to send the image which is there in my mobile to any android app, I have used this code which is not working. Showing Toast 'file is not supported' while trying to share to whatsapp. share.setOnClickListener(new View.OnClickListener() { …
0
votes
0 answers

How to stop back behavior of Intent redirection?

Suppose that I have 2 pages A and B. On click on a link on A, I redirect my app to page B. This page B just redirects to an App by setting window.location= using intents. The problem is that after doing this chrome automatically…
0
votes
1 answer

How to avoid detection of NFC tag in android?

I am making an app with NFC. I want the detection is disabled or drops(no vibration, no sound, no app chooser dialog, no detection notification) in some activities or fragments. Is that possible? Only I did is using SingleTop in manifest and to the…
c-an
  • 3,543
  • 5
  • 35
  • 82
0
votes
1 answer

how to disable chooser dialog in android?

I am making an app with using NFC. Whenever the tag is detected, chooser dialog keeps pop up with Complete action using title and possible apps. I covered it up with using SingleTop or SingleTask. However, It does not work all the time. It seems…
0
votes
1 answer

Pixel3 ACTION_VIEW won't start for other files than images

This is my code for trying to open a file I create from a base64 string: var decodedBytes = Base64.decode(filtered.first().contentsB64String, Base64.NO_WRAP) var ext = FilenameUtils.getExtension(commonName) fileTemporary =…
rosu alin
  • 5,674
  • 11
  • 69
  • 150
0
votes
1 answer

Android. Is there an intent to go to the default Apps page?

I have this code to set my app as the default dialer: val telecomManager = getSystemService(TELECOM_SERVICE) as TelecomManager val isAlreadyDefaultDialer = packageName == telecomManager.defaultDialerPackage if…
0
votes
0 answers

How can I share an audio file directly from raw folder in Android?

I'm writing a soundboard app that takes files from res/raw folder and puts them in a gridview with a button for each. If I press a button longer, I can get a menu from which I can share the audio file, but, when I try to send it via WhatsApp, I get…
0
votes
0 answers

getContentResolver() value null for data but receiving name correctly

I'm not able to read data part from the selected image Uri, this happens on some specific device Lg nexus 5 api 6.0.1 Uri of a selected…
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

Custom action chooser on a FAB button click

I'd like to display kind of custom chooser (similar to the share intent chooser) on a fab button click event. The thing is that it should contain custom items with custom intent actions for each of the displayed items. I mean, instead of containing…
mantc_sdr
  • 451
  • 3
  • 17