JGLTF/src/main/java/de/javagl/jgltf/util/android/ContentUtils.java
/**
     * Get the Intent for selecting content to be used in an Intent Chooser.
     *
     * @return The intent for opening a file with Intent.createChooser()
     * @author andresoviedo
     */
Get the Intent for selecting content to be used in an Intent Chooser.
@return The intent for opening a file with Intent.createChooser()
@author andresoviedo
Get the Intent for selecting content to be used in an Intent Chooser . @return The intent for opening a file with Intent . createChooser () @author andresoviedo
@TargetApi(Build.VERSION_CODES.KITKAT)
    private static Intent createGetMultipleContentIntent(String mimeType) {
        final Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
        intent.setType(mimeType);
        intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
        intent.addCategory(Intent.CATEGORY_OPENABLE);
        return intent;
    }
@ TargetApi ( Build . VERSION_CODES . KITKAT ) private static Intent createGetMultipleContentIntent ( String mimeType ) { final Intent intent = new Intent ( Intent . ACTION_OPEN_DOCUMENT ) ; intent . setType ( mimeType ) ; intent . putExtra ( Intent . EXTRA_ALLOW_MULTIPLE , true ) ; intent . addCategory ( Intent . CATEGORY_OPENABLE ) ; return intent ; }
Get the Intent for selecting content to be used in an Intent Chooser.
Get the Intent for selecting content to be used in an Intent Chooser .
// Implicitly allow the user to select a particular kind of data // The MIME data type filter // EXTRA_ALLOW_MULTIPLE: added in API level 18 // Only return URIs that can be opened with ContentResolver