我应该如何将 30MB 的大数据从 wear 传输到 mobile?

How should I transfer a large 30MB from wear to mobile?

我目前正在使用 DataApi 和 Asset class 将一个 30MB 的文件从移动设备传输到穿戴设备。我正在使用 IntentService 但文件永远不会到达移动设备。磨损冻结并说 "Application is not responding, do you want to wait?"

我应该使用 SyncAdapter 来发送吗?我不确定执行此操作的最佳方法?

最好使用ChannelApi methods; first obtain a channel and then use Channel#sendFile()发送文件。 ChannelApi 是为传输大文件而构建的,不会在所有设备之间进行同步,而是针对您用来打开通道的目标进行同步。它还在发件人端保存 space。如果您不需要在多个连接的设备之间同步,这就是要使用的 api。