android wear与手机通讯发送asset失败问题

手表与手机通讯发送大数据时须要使用asset,但是在确认发送数据没有问题,接收数据部分也没有问题时,asset数据仍然接收不到,本人遇到此问题的缘由是:html

看一下接收数据部分是否有如下标红的代码node

@Overrideandroid

// ConnectionCallbacksapi

public void onConnected(Bundle bundle) {ide

Wearable.DataApi.deleteDataItems(mGoogleApiClient, dataItemUri).setResultCallback(this);大数据

}this

注释掉后,asset数据接收正常spa

附:code

public   abstract   PendingResult<DataApi.DeleteDataItemsResult>             deleteDataItems (GoogleApiClient client, Uri uri)    

Removes all specified data items from the Android Wear network.orm

If uri is fully specified, this method will delete at most one data item. If uri contains no host, multiple data items may be deleted, since different nodes may create data items with the same path. See  DataApi for details of the URI format. 

相关文章
相关标签/搜索