如何构建PhoneGap Build应用程序Android Wear? [英] How to build Phonegap Build application for Android Wear?

查看:379
本文介绍了如何构建PhoneGap Build应用程序Android Wear?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想建立一个纯粹的HTML5和Javascript基于Phonegap应用程序,可以使用Phonegap Build构建, strong>如果这是可能的,那么应该采取什么步骤?



我的研究到目前为止:


  1. 在Phonegap Build论坛上发布通知关于 Ball Escape游戏,据报道使用Phonegap构建,并准备在Android Wear上运行。但是,没有关于如何做的细节,除非一个无意义的评论,Phonegap Build rep Amir,有人做了这个


  2. 我通过了构建适用于可穿戴设备的应用,但迄今为止没有发现任何问题


  3. 我如何添加Android Wear软件包phonegap项目?运行Phonegap应用程序,在Android Wear 上支持HTML5和Javascript 不会对我的实际答案题。第二个甚至似乎反对,因为给定的答案声称,不可能为Android Wear构建基于HTML5的应用程序,因为它仅支持基于Java的本机应用程序。但是,再次,有 Ball Escape游戏,谁是作者声称,它在Phonegap中完成。


知道,我可以使用 Ludei的CocoonJS < a>为许多平台(包括 Android Wear)构建基于HTML5的应用程序,很像我在Phonegap中所做的那样(Ludei还提供了基于云的应用程序构建,甚至看起来是免费的)。但是,我对我的简单数据传输应用程序的性能有一些疑问,因为CocoonJS似乎是针对高性能游戏的优化。此外,我想避免将PhoneGap切换到另一个环境,如果可能的话。

@trejder,
现在,你有它正确。有很少支持AndroidWear,但这不是说,这是不可能的。大多数PhoneGap应用程序依赖于Java(或Android以外的平台上的等效)来做重大的工作。如果你看到一些工具,它很可能你会看到更多。



一个替代方法是与Java作者合作写出您需要的最基本的部分,但我发现这方面运气不大。



但是,考虑到这一切,我不会担心。在过去两年里,许多可穿戴设备(我看过)在野外使用BLE(蓝牙低功耗)。



蓝牙开发者论坛
https://developer.bluetooth.org/Community/Pages/default.aspx p>

领先的用于Linux的蓝牙开发工具
http://www.bluez.org/



最好的运气,
Jesse


I would like to build a pure HTML5 and Javascript based Phonegap application, that can be build with Phonegap Build and be able to deploy it to Android Wear.

If this is possible at this moment, then what steps should be taken?

My research so far:

  1. There is a notice on Phonegap Build forum about Ball Escape game, that is reported to be built with Phonegap and ready to be run on Android Wear. But, there are no details on how this was done except a meaningless comment by Phonegap Build rep Amir, that someone did this.

  2. I went through Building Apps for Wearables, but found nothing on this matter so far.

  3. Questions like How can i add a Android wear package to phonegap project? or Run Phonegap application, that supports HTML5 and Javascript on Android Wear brings no actual answer to my question. Second one even seems to be against, as given answers claims, that it is not possible to build HTML5 based application for Android Wear as it supports only Java based native apps. But, then again, there is Ball Escape game, whos author claims, that it was done in Phonegap.

I know, that I can use CocoonJS from Ludei to build HTML5 based application for many platforms, including Android Wear, pretty much like I do this in Phonegap (Ludei also offers cloud-based build of their apps and it even seems free). But, I have some doubts about performance for my simple data transfer application, because CocoonJS seems to be optimized for high-performance games instead. Plus, I'd like to avoid switching Phonegap to another environment, if that would be possible.

解决方案

@trejder, at the moment, you have it correct. There is very little support for AndroidWear, but that is not to say that it is not possible. Most Phonegap Apps depend on Java (or the Equivalent on platforms other than Android) to do the heavy lifting. If you are seeing some tools, it is likely you will see more.

One alternative is to team up with a Java author to write the most basic portions you need, but I have found little luck in this.

However, given all this, I would not fret. Over the last two years many of the wearables (I've seen) in the wild are using BLE (Bluetooth Low Energy). If this is so, for the wearables you are look at, then you are in luck.

Bluetooth Developer Forum https://developer.bluetooth.org/Community/Pages/default.aspx

Leading Bluetooth Developer tools for Linux http://www.bluez.org/

Best of Luck, Jesse

这篇关于如何构建PhoneGap Build应用程序Android Wear?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆