java.lang.SecurityException异常:探戈权限被拒绝。没有ADF许可 [英] java.lang.SecurityException: Tango Permission Denied. No ADF permission

查看:247
本文介绍了java.lang.SecurityException异常:探戈权限被拒绝。没有ADF许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图通过从演示应用程序导出它弄明白ADF数据。
然而,当我试图执行它抱怨不具有ADF权限的出口。
我打电话REQUEST_TANGO_PERMISSION后出口常规正确的,但我仍然无法读取ADF的。

I've been trying to make sense out of ADF data by exporting it from the demo apps. However, when I try to perform the export it complains about no having ADF permissions. I'm calling the export routine right after REQUEST_TANGO_PERMISSION but I'm still unable to read the ADFs.

我去了在线文档,但我没能找到这个许可请求的意图的名称。有谁知道如何申请呢?因为它是基于意图我假设它应该以同样的方式被请求,主REQUEST_TANGO_PERMISSION

I went to the online docs but I wasn't able to find the name of this permission request intent. Does anybody know how to request this? Since it is intent based I'm assuming it should be requested in the same way that the main REQUEST_TANGO_PERMISSION.

感谢您的帮助。

Cristhopper

Cristhopper

推荐答案

您应该调用一个意图导出/导入ADFS,你就叫需要指定目标位置或ADF的UUID的意图。请看看DOC的这里(进口/出口部分)

You should call a intent to export/import the adfs, the intent you called need to specify the target location or ADF's uuid. Please take a look of the doc here (import/export section)

private static final String INTENT_CLASSPACKAGE = "com.projecttango.tango";
private static final String INTENT_IMPORTEXPORT_CLASSNAME = "com.google.atap.tango.RequestImportExportActivity";
// startActivityForResult requires a code number.
private static final String EXTRA_KEY_SOURCEUUID = "SOURCE_UUID";
private static final String EXTRA_KEY_DESTINATIONFILE = "DESTINATION_FILE";
Intent exportIntent = new Intent();
exportIntent.setClassName(INTENT_CLASSPACKAGE, INTENT_IMPORTEXPORT_CLASSNAME);
exportIntent.putExtra(EXTRA_KEY_SOURCEUUID, mUUIDList[info.position]);
exportIntent.putExtra(EXTRA_KEY_DESTINATIONFILE, mAppSpaceADFFolder);
thisActivity.startActivityForResult(exportIntent, Tango.TANGO_INTENT_ACTIVITYCODE);

这篇关于java.lang.SecurityException异常:探戈权限被拒绝。没有ADF许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆