Skip to content

Instantly share code, notes, and snippets.

@oluwabajio
Last active September 3, 2021 10:41
Show Gist options
  • Save oluwabajio/362f379c4b4ee9193290f5cb60fe5e62 to your computer and use it in GitHub Desktop.
Save oluwabajio/362f379c4b4ee9193290f5cb60fe5e62 to your computer and use it in GitHub Desktop.
FOr eample to choose or aelect only bmp files, use
Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("image/x-ms-bmp");
startActivityForResult(i, 411);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment