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 elementJava applications
Java applications need the Tango Mira release libtango_client.jar. It
contains the new Tango constructor function:
网友评论