当我尝试导出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$1.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工作,但我不能在平板电脑上查看,因为我不知道如何弄明白。
答案 0 :(得分:1)
Zaniah版本中存在导致此问题的错误,这在A版本(当前版本)中得到修复。
在幕后,mTango.exportAreaDescriptionFile
正如上面提到的那样调用意图,因此这两种方法现在应该在A版本中工作。