Intent. SetType (" * */");
Intent. PutExtra (intent. EXTRA_ALLOW_MULTIPLE, true);//open multiple files
Intent. AddCategory (intent. CATEGORY_DEFAULT);
Intent. AddFlags (intent. FLAG_GRANT_READ_URI_PERMISSION);
StartActivityForResult (Intent. CreateChooser (Intent, ""), 2);
CodePudding user response:
Still oneself write a file selector, a native of adaptation too troublesome, different type different versions may not be the sameCodePudding user response:
If the API versionCodePudding user response:
"No API support 9,CodePudding user response:
Write their own not to come out, to multi-selectCodePudding user response:
https://mp.csdn.net/console/editor/html/107080751I write my own radio, choose more, a little humble, can under reference
CodePudding user response:
Write their own, android fragmentation so much with the suitability of native problem is very big,