Unity 5 と Tango を使用しており、ADF を SD カードにエクスポートするための Area Learning サンプル コード (Nash) を取得しようとしています。私が得る logcat のエラーは次のとおりです。
I/tango_client_api( 195): Tango Service: saveAreaDescriptionMetadata, internal status 0
W/tango_client_api( 195): The application 'com.projecttango.experiments.unityarealearning' has no ADF import/export permissions. Instead of calling import/export through the Tango Service API, call the import/export Android intent.
I/tango_client_api( 195): Tango Service: exportAreaDescription, internal status -6
E/tango ( 195): TangoServer.cc:309 Export Area Description has no permission.
E/tango_client_api( 9873): TangoErrorType TangoService_exportAreaDescription(const char*, const char*): Internal Error: Could not export the ADF: 95f406fa-f24f-41bc-9355-5abd0db68c14 into folder: /sdcard/defaultArea.
I/Unity ( 9873): PoseProvider.ExportAreaDescription() Could not export area description: 95f406fa-f24f-41bc-9355-5abd0db68c14
I/Unity ( 9873):
I/Unity ( 9873): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
I/Unity ( 9873):
ADF の読み込みと保存だけでなく、エクスポートとインポートのためにこのインテントベースのアクセス許可を複製する必要があるようです ( https://developers.google.com/project-tango/apis/java/java-user-permissionsを参照) 。
しかし、C# Unity では、方法がわかりません。