问题
I have basic Android widgets which are already running well on phone. How to extend it to Android Wear devices?
- Should I be able to extend it somehow? So only 1 source code for both phone and wear devices.
- 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