
ContentProvIDer是正确的解决方案吗?我还需要添加到AndroIDManifest.xml中?
解决方法 经过几个小时的网络搜索后,我找到了以下解决方案.>实现活动处理意图.在其中,使用以下或更具体的代码:
Uri resultUri = // the thing to returnIntent result = new Intent();result.setData(resultUri);setResult(Activity.RESulT_OK,result);finish();
>将以下内容添加到清单中:
<activity androID:name="Activityname" androID:label="Some label" > <intent-filter> <action androID:name="androID.intent.action.GET_CONTENT" /> <category androID:name="androID.intent.category.OPENABLE" /> <category androID:name="androID.intent.category.DEFAulT" /> <data androID:mimeType="*/*" /> </intent-filter> <intent-filter> <action androID:name="androID.intent.action.PICK" /> <category androID:name="androID.intent.category.DEFAulT" /> <data androID:mimeType="*/*" /> </intent-filter></activity>总结
以上是内存溢出为你收集整理的android – 如何为Intent.ACTION_GET_CONTENT提供内容全部内容,希望文章能够帮你解决android – 如何为Intent.ACTION_GET_CONTENT提供内容所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)