ADF 文件的导出不起作用。不调用 exportAreaDescriptionFile() 也不使用 Intent

Export of ADF-File does not work. Not with call of exportAreaDescriptionFile() nor with Intent

当我尝试导出 ADF 文件时,我得到以下输出:

09 17:41:56.960 28464-28498/? I/tango: permission_handler.cc:62 App com.bla.editsys has ADF permissions.
12-09 17:41:56.964 28464-28498/? E/tango: file_io.cc:897 Failed to open ADF file: /data/data/com.google.tango/files/Tango/ADFs/007c4016-077d-446f-99ff-fc9ee54072de
12-09 17:41:56.964 28464-28498/? E/tango: file_io.cc:923 Failed to read ADF header.
12-09 17:41:56.964 28464-28498/? E/tango: context_config_utils.cc:269 Couldn't read ADF Info. adf_path = /data/data/com.google.tango/files/Tango/ADFs/007c4016-077d-446f-99ff-fc9ee54072de
12-09 17:41:56.965 28464-28479/? I/tango_client_api: Tango Service: connect, internal status -2
12-09 17:41:56.966 4171-8416/com.bla.editsys E/tango_client_api: TangoErrorType TangoService_connect(void*, TangoConfig): Internal Error: Connect failed internally: -2
12-09 17:41:56.966 4171-8416/com.bla.editsys E/PlaneFittingActivity: Tango invalid exception! Try again!
                                                                          com.google.atap.tangoservice.TangoInvalidException
                                                                              at com.google.atap.tangoservice.Tango.throwTangoExceptionIfNeeded(Tango.java:827)
                                                                              at com.google.atap.tangoservice.Tango.connect(Tango.java:435)
                                                                              at com.bla.editsys.PlaneFittingActivity.run(PlaneFittingActivity.java:220)
                                                                              at java.lang.Thread.run(Thread.java:811)

如果我调用

就会发生这种情况

mTango.exportAreaDescriptionFile(uuid, getFilesDir().getAbsolutePath());

还有这样:

Intent exportIntent = new Intent();
                exportIntent.setClassName(INTENT_CLASSPACKAGE, INTENT_IMPORTEXPORT_CLASSNAME);
                exportIntent.putExtra(EXTRA_KEY_SOURCEUUID, uuid);
                exportIntent.putExtra(EXTRA_KEY_DESTINATIONFILE,getFilesDir().getAbsolutePath());
                this.startActivityForResult(exportIntent, Tango.TANGO_INTENT_ACTIVITYCODE);

我从这里得到的代码:https://developers.google.com/tango/apis/java/java-user-permissions

我在 zeniah 上工作,但我无法在平板电脑上查看,因为我不知道如何计算。

Zaniah 版本中存在导致此问题的错误,已在 A 版本(当前版本)中修复。

在幕后,mTango.exportAreaDescriptionFile 正在完全按照您上面提到的那样调用意图,因此这两种方法现在应该可以在 A 版本中使用。