简体   繁体   English

什么时候去寻找原生Android应用程序以及何时使用HTML5进行混合模型

[英]When to go for native android app and when to go for hybrid model using HTML5

任何人都可以给我一些指示什么时候给我们一个原生的Android应用程序,什么时候去使用HTML5的混合模型....任何人都可以告诉每个模型的利弊。

Choosing the native app means you target the specific device platform , but with a hybrid app you can target your user audience . 选择原生应用意味着您定位特定设备平台 ,但使用混合应用,您可以定位您的用户受众

Pros of native app: -outstandig UI effects (you should go this way in case of developing games) Cons of native app: -targeting more platforms means rewriting the app and maintaining more codebase 本机应用程序的优点: -outstandig UI效果(在开发游戏时你应该采用这种方式) 本机应用程序的缺点: -定位更多平台意味着重写应用程序并维护更多代码库

Pros of hybrid app : -time-to-market factor -low learning-curve (having experience in webdevelopment makes it even easier) -normally it's easy to integrate with the customer's existing data-sources and workflows 混合应用程序的优点 :时间到市场因素 - 低学习曲线(具有网络开发经验使其更加容易) - 通常很容易与客户现有的数据源和工作流程集成

Cons of hybrid app: -having many years of experience in enterprise application development causes the feeling that the right dev-tools are still missing 混合应用程序的缺点: - 拥有多年的企业应用程序开发经验会让人觉得仍然缺少正确的开发工具

More and more companies realize that HTML5 hybrid application model is essential to implement Line-of-Business application on mobile platform and you can find more-and-mode opensource libraries to build a really responsive app to your customers. 越来越多的公司意识到HTML5混合应用程序模型对于在移动平台上实现业务线应用程序至关重要,您可以找到更多模式的开源库来为您的客户构建真正响应的应用程序。

I can see only two risks of hybrid applications, which can be easily avoided: -Developers often test hybrid applications in HTML5-capable desktop browsers. 我只能看到混合应用程序的两个风险,可以轻松避免: - 开发人员经常在支持HTML5的桌面浏览器中测试混合应用程序。 This can cause serious performance issues in the deployed application. 这可能会在已部署的应用程序中导致严重的性能问 So the dev-team should do day-to-day tests on real mobile devices. 所以开发团队应该在真实的移动设备上进行日常测试。 -You can easily be stuck to a particular framework (Ex. Sencha Touch). - 你很容易陷入特定的框架(例如Sencha Touch)。 Try to prefer using libraries to building application on a specific framework, so you can stay agile and adopt to changing business requirements quickly. 尝试更喜欢使用库在特定框架上构建应用程序,这样您就可以保持敏捷并快速采用不断变化的业务需求。

There are two schools of thought here.. 1. cross platform is good 2. cross platform is the least of all things. 这里有两种思想流派.1。跨平台是好的2.跨平台是最不重要的事情。

When you go for cross platform, you miss out on the specifics of the platform. 当你选择跨平台时,你会错过平台的细节。 Years ago I coded for blackberry, but opted to go with J2ME without the blackberry extensions. 几年前我编写了黑莓编程,但选择使用没有黑莓扩展的J2ME。
This meant my code ran on most java phones. 这意味着我的代码在大多数Java手机上运行。 But at the same time, I couldn't make use of the file system on the blackberry, because there were no files in the J2ME world. 但与此同时,我无法在黑莓上使用文件系统,因为J2ME世界中没有文件。 I could hand code buttons and draw on screen the way I wanted, but I couldn't make use of some of the RIM_JAVA screen classes. 我可以按照我想要的方式处理代码按钮并在屏幕上绘图,但我无法使用某些RIM_JAVA屏幕类。

So I got an app that looked and ran the same on smart phones, but didn't take advantage of the RIM hardware. 所以我在智能手机上看到并运行了相同的应用程序,但没有利用RIM硬件。 It was a trade off that I was happy to make, because of my target users. 由于我的目标用户,这是我很乐意做出的权衡。 If I'd needed some of the RIM specifics, though, I'd have had to have pulled them in, at the expense of a portable application. 但是,如果我需要一些RIM细节,我必须以便携式应用程序为代价将它们拉进去。

It's a coin toss.. If you go with generic, then you get all the common and therefore reach a larger market. 这是一个投掷硬币..如果你选择通用,那么你就会得到所有的共同点,从而进入一个更大的市场。 But at the same time you don't really get the most out of the hardware. 但与此同时,你并没有真正从硬件中获得最大收益。

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

相关问题 IOS / Android更新时混合HTML5应用程序出现问题吗? - Problems with hybrid HTML5 apps when IOS/Android updates? 从HTML5应用转到Android APK的最简单方法 - The easiest way to go from HTML5 app to Android APK 当尝试使用Appium进行自动化时,NATIVE_APP上下文显示在使用Cordova的混合Android应用上 - NATIVE_APP context are showing on a hybrid Android app which is using Cordova , when trying to automate using Appium 使用html5,angular js,css3使用phonegap创建混合Android应用程序 - creating an hybrid android app using phonegap using html5, angular js ,css3 使用 HTML5 音频的无线电 stream 混合 Android 应用程序的巨大延迟 - Huge delay on a radio stream hybrid Android App using HTML5 audio Android通知(HTML5 / Hybrid) - Android Notifications (HTML5/Hybrid) Android 6权限-在“设置”中切换权限并返回应用时崩溃 - Android 6 permission - Crashes when toggling permission in Setting and go back to app Android插页式广告 - 返回时关闭应用 - Android interstitial ads - closes app when go back 尝试转到新的Intent时Android App崩溃 - Android App crashes when trying to go to a new Intent Android如何在应用程序进入后台时停止计时器 - Android how to stop timer when app go to background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM