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
2
votes
1 answer

Sharing Intent shows old extras in WhatsApp

Guys i need help i aam facing a very strange problem and I would like to hear your opinion i added a share button to share images. I used Intent intent = new Intent (); intent.setType("image/png"); intent.putExtra(Intent.EXTRA_STREAM,…
dEv_tO_bE
  • 145
  • 2
  • 12
2
votes
2 answers

Choosing Intent for Zip files

I have a zip file which was downloaded from url and its path is set to /storage/emulated/0/myapp/downloadedfile.zip Now I would like to open this zip file via choose intent to list the available apps to open the downloaded file. I have set this in…
coder
  • 13,002
  • 31
  • 112
  • 214
2
votes
1 answer

Custom intent-chooser - why on Android 6 does it show empty cells?

Background I wish to show the native intent-chooser, while having the ability to customize it a bit. For this, I've found the next StackOverflow thread: How to customize share intent in Android? The problem Thing is, when I use the suggested code on…
2
votes
1 answer

Callback for Custom Item in Intent Chooser Screen

My use case is to download an image from a Custom Download option from Intent Chooser. I understand that I can add the custom option by adding some code like below : Intent share = new Intent(Intent.ACTION_SEND); share.setType("text/plain"); …
Abhishek Sabbarwal
  • 3,758
  • 1
  • 26
  • 41
1
vote
0 answers

Is there a way to track when the "Copy" link button is tapped in the Android system share sheet?

Does anyone know if it's possible to track when the "Copy" link button is tapped in the Android system share sheet? Using an IntentSender and extracting the chosen component from the result bundle works great if the user chooses an app to share to,…
Ryan
  • 3,414
  • 2
  • 27
  • 34
1
vote
0 answers

Wrong name of the shared file when choosing the app from Intent.createChooser

My app can share internally stored files with the androidx.core.content.FileProvider. The intent and the chooser are created with the following snippet: val shareIntent: Intent = Intent().apply { action = Intent.ACTION_SEND putExtra( …
Massimo
  • 3,436
  • 4
  • 40
  • 68
1
vote
0 answers

Android intent catch download CSV event from DEGIRO app

I'd like to open my app for downloading CSV created by another app (in my case is Banking DEGIRO app). When I click on "CSV" icon CHROME, and Degiro itself, apps are offered for open the content. If I choose Chrome a blank page appears and a CSV…
Toto
  • 139
  • 1
  • 2
  • 11
1
vote
1 answer

Xamarin.Android: Opening an Excel document using Intents in Android 10+ fails

I have the following code for exporting an Excel file. The final result is opened in the Excel App. This is the code for opening the file: if (file.Exists()) Intent intent = new Intent(Intent.ActionView); if (Build.VERSION.SdkInt <…
1
vote
1 answer

How to show PDF file only in intent chooser

I am working on an application in which a user selects a pdf file and then it gets uploaded on firebase. The problem is when a user wants to select a file then other files which are not pdf are also shown. I want to restrict it and want to show pdf…
Saify
  • 469
  • 1
  • 5
  • 20
1
vote
0 answers

Sort Apps according to usage in android (for CustomShareBottomSheetFragment)

Problem I am trying to create a share intent chooser page [BottomSheetFragment] for sharing text in my app but i am unable to sort the apps according to the users most frequently used apps, the relevant app list is coming in random order. I want to…
1
vote
1 answer

Android deeplink - don't show intent chooser popup, force open app

I want to open my app from browser, when user opens any link that my app handles. So I'm using deeplinking. Here's my code in manifest file.
1
vote
2 answers

How to get first two chooser intents and display only them for user in android

I'm trying to display only gallery and File manager in the chooser intent So, i tried something like below Intent intent = new Intent(); intent.setType("image/*"); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); …
shiv
  • 165
  • 11
1
vote
1 answer

UPI Implicit Intent chooser not working on redmi device

This is my code for upi implicit intent which gives user of option to choose multiple upi supported application and the code is working fine on all the devices i have tested and all the version except Redmi Devices. My code is not working on any…
bipin
  • 1,091
  • 4
  • 12
  • 30
1
vote
0 answers

Choose Android Service with same action

We created two applications as a service. Both runs without problems when we start the service implicit from a third application. But we want the user to chooose which service should be started. Is there any way to create an AppChooser or something…
guenes
  • 35
  • 6
1
vote
1 answer

Action.Picker returns invalid/wrong Uri (How to get path or byte[] from multiple picked gallery img)

I have an forms app where i need to pick "1 to many" images from the phone storage. For this i use the dependency injection system. My problem is the somewhere i get an Android.netUri that resolves to a file that do not exist... and to a file name…