且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到用于处理Intent的活动-android.intent.action.OPEN_DOCUMENT

更新时间:2023-11-16 09:20:40

添加mime类型,或简单地intent.setType("*/*").

Add a mime type, or simply intent.setType("*/*").

这似乎是已知问题. setType()是必需的.

This seems to be a known issue. setType() is required.

您还需要添加android:enabled="true",请注意,您应该从值而不是直接引用它,以便仅对> = kitkat启用它.所以/res/values/中的android:enabled="@bool/is_kitkat"<bool name="atLeastKitKat">false</bool>/res/values-v19/

you also need to add android:enabled="true", note that you should reference it from values and not directly so as only to enable it for >=kitkat. So android:enabled="@bool/is_kitkat", <bool name="atLeastKitKat">false</bool> in /res/values/ and <bool name="atLeastKitKat">true</bool> in /res/values-v19/