且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

移动应用程序 - 打靶iPhone,WP7,Android和黑莓

更新时间:2023-01-01 17:35:33

有没有良好的的简单的答案,我知道的所有的移动平台。您可以使用开发环境如 Appcelerator的钛,该交叉编译,以在各种平台上本地code(现在,举例来​​说,我觉得钛支持iOS和Android,并计划为黑莓)。然而,这些通常有一个有限的API,你可以访问,而你还是最终需要设计不同的用户界面为不同的平台(在我的商业工作,我从来没有成功地用了这样一个平台)

There's no good simple answer that I know of for all mobile platforms. You can use development environments like Appcelerator Titanium, which cross-compile to native code on various platforms (right now, for instance, I think Titanium supports iOS and Android, with plans for Blackberry). However, these usually have a limited API that you have access to, and you still end up needing to design different UIs for the different platforms (in my commercial work, I have never successfully used such a platform)

您也可以设计所有的业务逻辑在基于web服务的后端,然后只写瘦客户端的应用程序为每个平台。这工作,但当然需要网络访问时,最终用户要使用你的应用程序。 (通常它会在那里,但有时可能没有)

You could also design all the business logic in a web-services back end, and then just write "thin client" apps for each platform. This works, but of course requires network access when the end user wants to use your app. (Usually it'll be there, but sometimes may not)

最后,我通常最终会做什么,你提出 - 写作的基本商业逻辑在几个不同的语言为一般地,然后捆绑在自定义用户界面/设备code为每个平台。还没有找到更好的办法自己....

Ultimately, I usually end up doing what you propose -- writing the basic business logic in a couple of different languages as generically as possible, and then bundling that in with custom UI/device code for each platform. Haven't found a better way myself....

(顺便说一句,我相信像愤怒的小鸟游戏在很大程度上是写在OpenGL中,然后装到每个平台上的OpenGL的处理器,但我可能是错误的...)

(BTW, I believe games like Angry Birds are written largely in OpenGL and then loaded onto the OpenGL processor on each platform. But I could be mistaken...)