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
2 answers

How to send video directly to a WhatsApp number Android Studio?

I want to select a video from the gallery and send it to a specific number through WhatsApp. I am able to select the video and open WhatsApp but it shows me to select the contact in WhatsApp. How can I send it directly without selecting a contact in…
Bhaskar Jyoti Dutta
  • 1,740
  • 2
  • 15
  • 30
0
votes
1 answer

Unable to launch my app from Google Phone app contacts tab

When I was attempting to open My Contacts App via the Google Phone app Contacts tab but are receiving an error that there are no apps available to display the contact. I appreciate any suggestions, Thanks!
0
votes
0 answers

File Manager not found when share chooser shown from an android app

How to make my file manager can be shown from this sharing chooser? So I can save the image without any third party like EZ, X-Plore, ZArchiver I have tried like this. val uris: List =…
0
votes
0 answers

Unable to see the values set in EXTRA_TITLE

I am building an app say Tx , which call's the createChooser using the below code. Intent shareIntent = new Intent("com.myapplication.test"); shareIntent.putExtra(Intent.EXTRA_TITLE, "Sharing .."); shareIntent.putExtra(Intent.EXTRA_TEXT,"Shared from…
Vinay KS
  • 35
  • 1
  • 11
0
votes
1 answer

Intent not sending EXTRA_TEXT when Intent.ACTION_SEND is used

I am trying to send a link from a fragment to the same application via Intent.ACTION_SEND. When the share intent is sent, the list of applications have my application which on click takes me to an activity within my app, where i am trying to receive…
0
votes
0 answers

Android open/view pdf: intent chooser cannot find any application for opening pdf file stored in 'Google Drive'

I was trying to create a chooser to grant users freedom to open a pdf file with the application they prefer. Here's my approach: private void openPdf(String pdfUrl, String mime) { // Intent pdfViewIntent = new…
ganjaam
  • 1,030
  • 3
  • 17
  • 29
0
votes
0 answers

How to open the "My Files/File Manager" in Android Programmatically (using Intent) in Android 12 - Snow Cone?

How to open My Files/File Manager folder in Android Programmatically (using intent) in Android 12 - Snow Cone? I am using the below code snippet which opens up the File Manager in Android 11(Red Velvet Cake), I want the My Files folder to get open…
Shubham Vyas
  • 59
  • 1
  • 1
  • 10
0
votes
1 answer

How to pass value string from API in Intent Chooser?

I want to make a news url share feature that gets from the API. I'm using the intent chooser to run the share feature in my app, but I'm having trouble entering the url of the article obtained from the API into the intent value? This is my code …
TurboLight
  • 21
  • 3
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"); …
0
votes
2 answers

Android Kotlin - Download video from url to InputStream / RAM without the need of permission and share

I need to download a video to a file without storing it on the device, only to the memory so I can share it without the need of permission: lateinit var videoFile: InputStream // or what ever type it is suppose to be! var videoFileUrl =…
Eduard Unruh
  • 985
  • 1
  • 14
  • 35
0
votes
1 answer

Android Kotlin - Intent createChooser - share the video file of VideoView / MediaPlayer from cache / memory

var medPlay: MediaPlayer holder.vidPlayer.setVideoPath(fileUrl) holder.vidPlayer.setOnPreparedListener { mp -> medPlay = mp } Instead of downloading the Video separately again for sharing, I'd like to share the file that is already loaded in…
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

Android Email Intent doesn't populate recipients

I am having an issue with Email Intent in Android. The recipients field is not populating properly. My code is as such: Extensions.kt // Returns a Mail Intent fun requireMailIntent(subject: String, body: String) = Intent(Intent.ACTION_SENDTO).apply…
Mervin Hemaraju
  • 1,921
  • 2
  • 22
  • 71
0
votes
1 answer

call test intent before activity's onCreate() - Espresso

I am calling intent to open the gallery in Activity's onCreate() this method is called in onCreate() @SuppressLint("IntentReset") private void requestForPickImage() { Intent i = new Intent(Intent.ACTION_PICK,…
0
votes
0 answers

[Java][Android] Implicit intent and createchooser combination

I think my problem is solved super easy. I have 2 possible intents and both use their Default category to get seen by chooser, but if i want to put extra the chooser won't even start! Both have in manifest.xml 1