HTML5 VS本机应用程序:选择哪一个? [英] HTML5 vs Native App : Which to choose ??

查看:167
本文介绍了HTML5 VS本机应用程序:选择哪一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是相当受欢迎,目前已经有很多关于它的问题。但是,他们中的一些是旧的(像6个月回),并为当前的日期 - 2012年5月...这将是真棒,如果你可以输入出哪一个是更好,因为现在

This question is quite popular, and there are already lot of questions pertaining to it. But some of them are old (like 6 months back), and for the current date - May 2012 ... it will be awesome if you can type out which one is better as of now !

我工作的一些应用程序,现在,跨平台的功能,是一个重大的交易在这里。我想知道我是否可以使用HTML5以下功能。

I am working on some apps right now, and cross-platform functionality is a major deal here. I would like to know if I can use HTML5 for the following features.

  1. 我的应用程序创建一个音乐播放器(将需要阅读所有播放列表和播放他们) - HTML5(或)原生

  1. Creating a music player in my app (will need to read all playlists and play them) - HTML5 (or) Native ?

加速度计的使用 - HTML5(或)原生

Accelerometer usage - HTML5 (or) Native ?

相机使用 - HTML5(或)原生

Camera usage - HTML5 (or) Native ?

使用的手势(Swype输入等) - HTML5(或)原生

Using gestures (swype, etc..) - HTML5 (or) Native ?

多点触控功能&放大器;手势 - HTML5(或)原生

Multi-touch capabilities & gestures - HTML5 (or) Native ?

开发3D游戏(或)2.5D与物理 - HTML5(或)原生? (本机可能是这里最好的交易,但我珍玩知道HTML5将如何做的多平台游戏开发)

Developing 3D game (or) 2.5D with physics - HTML5 (or) Native ? (Native might be the best deal here, but I am curios to know how HTML5 would do in multi-platform game dev)

如果你能说出数字与正确答案的选项,给一个理由,为什么我就必须使用本机/ HTML5,这将是真棒:)

If you can number the options with the correct answer, and give a reason as to why I would have to use native / html5, that would be awesome :)

另外,你有什么想法手机峡本机支持?

Also, what are your thoughts on Phone-Gap for native support ?

推荐答案

我的应用程序创建一个音乐播放器 - 两种。 HTML5可能是乏味的。

Creating a music player in my app - Both. HTML5 might be tedious.

加速度计的使用 - 母语。 HTML5将不会支持它。

Accelerometer usage - Native. Html5 won't support it

相机使用 - 母语。 HTML5将不会支持它。

Camera usage - Native. Html5 won't support it

使用手势 - 母语。 HTML5可以支持它,但你必须使用一个外部库

Using gestures - Native. Html5 can support it, but you'll have to use an external library

多点触控功能和安培;手势 - 我会说母语,为便于开发

Multi-touch capabilities & gestures - I'd say native, for the ease of development

开发3D游戏(或)2.5D物理学 - 在这两方面,一些伟大的库现在可用于两个系统。但是做你想做的HTML5恐怕是不容易的时刻。

Developing 3D game (or) 2.5D with physics - Both, some great libraries are now available for both systems. However doing what you want in HTML5 is probably not easy at the moment.

更一般地,HTML5给你给你写code一次,每一个系统的可能性,然后不知道它会工作以同样的方式随处可见。本机应用程序需要为每个平台特定的发展,随着成本和维护许多软件在到期日的不同阶段,它导致的问题。

More generally, HTML5 gives you the possibility to write you code once for every system and then wonder if it'll work in the same way everywhere. Native apps require a specific development for each platform, with the costs and the problems of maintaining many softwares at different stages of maturity that it leads.

不过,如果你并不需要特定的功能,去为HTML5。它仍然是一个有点乏味写code就可以了,到目前为止,但质量和可用的库的数量每天都在增加。使用的CoffeeScript ,它可以节省你的麻烦。

However if you don't need specific features, go for HTML5. It's still a bit tedious to write code on it so far, but the quality and the amount of available libraries is increasing every day. Use CoffeeScript, it'll save you headaches.

如果您的应用程序设计与响应式设计记住,你也能够支持电脑,平板电脑在一个应用程序的智能手机。

If your application is designed with responsive design in mind, you'll also be able to support computers, tablets and smartphones in one application.

这篇关于HTML5 VS本机应用程序:选择哪一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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