简体   繁体   English

我可以在Android智能手机上调试Android Wear应用程序吗? (如何)

[英]Can I debug an Android Wear app on an Android smartphone? (and how)

I'm planning to create myself a proof of concept Android Wear application, but I'm not planning to buy myself an Android smartwatch yet. 我打算为自己创建一个概念证明Android Wear应用程序,但我还没有打算为自己购买Android智能手表。 I will buy it if I get positive reactions from my target audience once I show some of them the proof of concept app from my personal smartphone (Android Kitkat). 如果我向目标受众展示了一些通过我的个人智能手机(Android Kitkat)提供的概念验证应用后,我会购买该产品。

is it possible to run/debug an Android Wear application on my smartphone? 是否可以在智能手机上运行/调试Android Wear应用程序? Suggestions for third party software is welcome as well. 也欢迎第三方软件的建议。

For a demo/proof of concept I'd say yes it's possible, in certain conditions/restrictions: 对于概念的演示/证明,我会说是可以的,在某些条件/限制下:

  1. It should be a standalone/fullscreen app (it will be hard to emulate the notifications/cards behaviour) 它应该是独立/全屏应用程序(很难模仿通知/卡片的行为)

  2. Define a 320x320px layout for your content (or 280x280, and eventually add a round mask it you need a round watch) 为您的内容定义一个320x320px的布局(或280x280,最后添加一个需要圆形观看的圆形蒙版)

  3. Code like it's Android! 像Android一样的代码!

Note that behind the scene communication between the phone and the app will be different when you do it on a real Wear, but for a demo your audience will not see the difference. 请注意,当您在真正的Wear上进行操作时,电话与应用之间的幕后通信将有所不同,但对于演示,您的听众将看不到差异。

You can check this app in which I use a similar layout for the watch, the handheld app and the widgets. 您可以检查该应用程序 ,其中手表,手持式应用程序和小部件使用相似的布局。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM