且构网

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

java.lang.SecurityException异常:探戈权限被拒绝。没有ADF许可

更新时间:2021-07-04 10:26:13

您应该调用一个意图导出/导入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);