How to restrict Google drive option from not appearing while selecting file or image in Android below API level 19?
Have you tried
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
//intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
intent.setType("application/pdf");
startActivityForResult(intent, PICKFILE_REQUEST_CODE);
This will work for me to avoid gdrive from chooser