Android - “Full action using” continues to display even after selecting “Always”

I am trying to use intent to view images. I managed to get my code to work, but the only problem is that every time I select the browse file button, the application always displays a “Full action using” pop-up dialog box even after choosing “Always”.

I still want the user to select from the installed installed application and set it by default when "always" is selected.

Do I need to programmatically save user choices? I only tested this on the Genymotion emulator (the Android Studios emulator is very slow on my laptop) and my Lenovo S820 Android 4.4.2. Is this a specific error in my phone or am I missing something? Thank you in advance.

I searched everywhere and found this question , but it also doesn't answer.

I call my intention as follows:

public Intent browse(){ Intent getterIntent = new Intent(Intent.ACTION_GET_CONTENT); getterIntent.addCategory(Intent.CATEGORY_OPENABLE); getterIntent.setType("image/*"); return getterIntent; } 
+5
source share

Source: https://habr.com/ru/post/1244520/


All Articles