How to change "Select an action" to "Complete an action using" on Android?

I have an NFC application that allows a user to scan their NFC tags and perform some actions. I ran into a problem when the user scanned the tag, it would be like "Choose an action" , but not "Complete action using" . The difference between the two: "Complete action using" allows the user to select the "always" button. If it shows β€œ Choose an action" he cannot remember the user's decision, and the user must select the application each time he scans the NFC tag.

Please check the screenshot below, say a thousand words. How can I force the "Complete action using" dialog?

choose an actioncomplete action using

+8
android android-intent nfc
source share
1 answer

As it turned out, you cannot change the default setting of Intent Android. All you can do is create your own DialogFragment with a list of Activities that can respond to the specified Intent and add buttons with custom logic. Hope this helps.

-one
source share

All Articles