我在 android 中打开内置图像提供程序并正确打开它。
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
// Filter to only show results that can be "opened", such as a
// file (as opposed to a list of contacts or timezones)
intent.addCategory(Intent.CATEGORY_OPENABLE);
// Filter to show only images, using the image MIME data type.
// If one wanted to search for ogg vorbis files, the type would be "audio/ogg".
// To search for all documents available via installed storage providers,
// it would be "*/*".
intent.setType("image/*");
startActivityForResult(intent, READ_REQUEST_CODE);
现在我的问题是我想用我的自定义主题打开它。
比如应用我的android:colorPrimary
,我也想在菜单中看到一个始终可见的 Camara 图标......
如何将我的应用主题应用于文档提供者?