If I send files via Intent
to other applications, the chooser dialog on Samsung devices shows the package name of my application besides the defined Activity
labels. On Nexus devices I only see the labels, as expected. How to fix this issue?
createChooser(intent, title); // Try to invoke the intent. // Define what your app should do if no activity can handle the intent. This displays a dialog with a list of apps that respond to the intent passed to the createChooser() method and uses the supplied text as the dialog title.
Forcing an App Chooser If you want to display the App Chooser every time the user calls the Intent, then you can force the app chooser by using createChooser() and pass it to the startActivity().
putExtra method is used.
You can find an app's package name in the URL of your app's Google Play Store listing. For example, the URL of an app page is play.google.com/store/apps/details? id=com. example.
Ok, I got it. It happens only if you use equal labels for your Activities
. Some devices show you the package name for better differentiation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With