移动应用程序 - 打靶iPhone,WP7,Android和黑莓 [英] Mobile App - Targetting iPhone, WP7, Android, and Blackberry

查看:125
本文介绍了移动应用程序 - 打靶iPhone,WP7,Android和黑莓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种理智的方式来开发跨平台的移动应用程序?我们希望这些成为每个平台上本地应用程序,而不一定是某种形式的网页。

Is there a sane way to develop a cross platform Mobile app? We want these to be native apps on each platform, and not necessarily some kind of web page.

目前,我们正在考虑将它分为两​​种语言:

Currently we're thinking to split it into two languages:

  • 在C#中的后端(业务逻辑)
  • - >标准C#应用程序的WP7
  • - >应用程序建立在MonoTouch的为iPhone / ipad /等
  • 在Java后端(业务逻辑)
  • - >标准Android的Java应用程序(MonoDroid版本的C#没有准备好 还)
  • - >标准黑莓的Java应用程序
  • C# backend (business logic)
  • --> Standard C# app for WP7
  • --> App built on MonoTouch for iPhone/iPad/etc.
  • Java backend (business logic)
  • --> Standard Android Java app (MonoDroid version of C# not ready yet)
  • --> Standard Blackberry Java app

我们也开始用C#开发和使用的转换工具,有一个让我们的C#转换成Java作为一个起点。

We could also develop initially in C# and use one of the conversion tools out there to get our C# converted into Java as a starting point.

难道还有其他的方法吗?我们的技能包括:主要包括强大的C#.NET的背景,以及轻微的Java开发经验。

Is there another approach? Our skillsets include mainly include a strong C# .Net background, and minor Java experience.

我们真的不想去低的水平,并使用类似C / C ++来完成这项工作。这些通常会成为通信的一些Web服务的简单的LOB应用程序。

We don't really want to go low level and use something like C/C++ to get the job done. These are usually going to be simple LOB applications that communicate to some web service.

边问:怎么样愤怒的小鸟的创造者的游戏开发者去做

Side Question: how do game devs like the makers of Angry Birds do it?

更新:

MonoDroid 现已正式发布。这么看来,你只需要使用Java的黑莓。我们正在考虑是不是开发黑莓可言,因为开发其他3个平台上进行了简化。肯定是有一些涉及的费用,如MonoTouch的和MonoDroid都是$ 399,您还需要为Visual Studio的许可证(这不包括费用的App store,等等)。

MonoDroid is now officially released. So it seems you would only need to use Java for the BlackBerry. We are considering not developing for BlackBerry at all, because developing for the other 3 platforms has been simplified. There is definitely some cost involved, as MonoTouch and MonoDroid are both $399 and you would also need a license for Visual Studio (this doesn't include cost for App store, etc.).

推荐答案

有没有良好的的简单的答案,我知道的所有的移动平台。您可以使用开发环境如 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...)

这篇关于移动应用程序 - 打靶iPhone,WP7,Android和黑莓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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