When you use an action with an intent, such as ACTION_GET_CONTENT , you tell the system to choose which application to open. If the user has not set a default for him, he will ask which application to use. The applications in the dialog box will show applications that have stated that they can handle this type of intent.
If you want to use an intent to trigger a specific action, you must call it by name. The problem here is that the gallery application can be named differently on different devices or even deleted.
Allow the user to choose his application, as a rule, correctly. This is definitely the โAndroidyโ way to do it.
In any case, EXTRA_LOCAL_ONLY tells the receiving application that it should only return data that is present. This condition does not ensure compliance with this condition.
source share