美文网首页
Google Tango API之Tango Android S

Google Tango API之Tango Android S

作者: 60916fc63567 | 来源:发表于2017-01-05 11:36 被阅读33次

    Tango Android Service Migration Guide

    To ensure compatibility with future devices, the Tango service has been

    changed from a system service to a standard Android service.

    为了确保与未来设备的兼容性,Tango服务已从系统服务更改为标准Android服务

    One result of this change is that applications will need to handle the service binding and unbinding lifecycle explicitly. The code changes you need to make are explained below.

    此更改的一个结果是应用程序将需要显式处理服务绑定和解除绑定生命周期。您需要做的代码更改如下所述。

    All applications


    For all applications running Tango as an Android service, in the

    AndroidManifest.xml file, remove this element:

    ... and replace it with this:

    Note that the only difference is the2added to the end of "device" in thenew element

    Java applications


    Java applications need the Tango Mira release libtango_client.jar. It

    contains the new Tango constructor function:

    相关文章

      网友评论

          本文标题:Google Tango API之Tango Android S

          本文链接:https://www.haomeiwen.com/subject/yifzvttx.html