【问题标题】:Sync data to watch from phone同步数据以从手机观看
【发布时间】:2014-09-07 12:31:46
【问题描述】:

我制作了自己的表盘,现在我想在表盘上添加手机电池百分比,同时能够从手机自定义表盘。我正在尝试使用这个:Android Wear Watchface Settings on host,但我不断收到错误。

Unknown entity 'connection callbacks' 

Method
com.google.android.gems.common.Api.GoggleApiClient.builder.addConnectioncallbacks(com.google.android.gems.common.Api.GoggleApiClient.builder.Connectioncallbacks)'in
com.google.android.gems.common.Api.GoggleApiClient.Builder' connot be applied to '(com.example.android.wearable.embedded.app.WatchfaceConfigActivity.(anonymous) )'

Unknown entity ''OnConnectionFailedListene'

Method
com.google.android.gems.common.Api.GoggleApiClient.builder.addOnConnectionFailedListener(com.google.android.gems.common.Api.GoggleApiClient.builder.OnConnectionFailedListener)'in
com.google.android.gems.common.Api.GoggleApiClient.Builder' connot be applied to '(com.example.android.wearable.embedded.app.WatchfaceConfigActivity.(anonymous) )'

【问题讨论】:

    标签: android android-wear-data-api


    【解决方案1】:

    我想通了。我必须为每个添加导入。

    我仍然有问题。顺便说一句,我对android开发很陌生。我收到警告:无法访问变量“phonebattery”。我在这里用“phonebattery”替换了“mode”:Android Wear Watchface Settings on host

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-04
      • 2016-10-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多