Extending AppWidget to Wearable App

淺唱寂寞╮ 提交于 2019-12-12 01:49:20

问题


I have basic Android widgets which are already running well on phone. How to extend it to Android Wear devices?

  1. Should I be able to extend it somehow? So only 1 source code for both phone and wear devices.
  2. Or I must implement a new project for Android wear devices?

Thanks


回答1:


You can extend wear app support just one application.(You not have to upload other Wear application at Play Store.

Add wear module in your project by Android studio. (File -> New Module -> Android Wear Module)

Maybe this site can help you to build wear app. https://developer.android.com/training/wearables/apps/creating.html



来源:https://stackoverflow.com/questions/27643879/extending-appwidget-to-wearable-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!