【问题标题】:Export ADF to Tango sdcard with Nash/Unity - ADF write permission denied使用 Nash/Unity 将 ADF 导出到 Tango sdcard - ADF 写入权限被拒绝
【发布时间】:2015-05-21 12:26:48
【问题描述】:

我正在使用 Unity 5 和 Tango,并尝试获取区域学习示例代码 (Nash) 以将 ADF 导出到 SD 卡。 我得到的 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): 

看来我必须复制这个基于 Intent 的导出和导入权限,而不仅仅是 ADF 加载和保存(请参阅:https://developers.google.com/project-tango/apis/java/java-user-permissions

但是在 C# Unity 中,我不知道怎么做。

【问题讨论】:

    标签: c# android unity3d google-project-tango tango


    【解决方案1】:

    我不太确定,因为我使用的是 C 而不是 Unity。难道是你没有在 Android Manifest 中设置权限?您可能需要为您的应用程序设置写入权限。

    【讨论】:

      【解决方案2】:

      在构建设置>播放器设置>其他设置中,确保写入权限设置为“外部(SD卡)”

      【讨论】:

        【解决方案3】:

        【讨论】:

          【解决方案4】:

          我遇到了同样的问题。解决方案是创建一个 Android 库并调用 RequestImportExportActivity。喜欢that

          你可以看看怎么做here

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2016-05-19
            • 2016-11-15
            • 1970-01-01
            • 2016-01-19
            • 2014-10-30
            • 2011-10-23
            相关资源
            最近更新 更多