有没有一种简单的方法来转换的Andr​​oid应用到iPad,IPhone方法来、简单、Andr、IPhone

2023-09-12 06:23:47 作者:﹠孤独的狼﹠

我有运行在Android市场有很好的应用。几个人都问我,提供一个iPad /手机版本。什么我进入这里,如果我尝试这样做?

I have a nice application running in the Android Market. Several people have asked me to deliver an IPad/Phone version. What am I getting into here if I try to do this?

有没有信誉的公司,可以做这种类型的转换?

Are there any reputable companies that can do this type of conversion?

推荐答案

我不知道怎么有帮助这个答案是当前应用程序,但它可能被证明为你将开发下一代应用程序的帮助。

I'm not sure how helpful this answer is for your current application, but it may prove helpful for the next applications that you will be developing.

由于iOS的不使用Java像​​Android一样,你的选择是非常有限的:

As iOS does not use Java like Android, your options are quite limited:

1),如果您的应用程序主要是用C / C ++使用JNI,你可以写一个包装,并与iOS的界面进行(即从提供的iOS回调到您的JNI编写的函数)。有可能是框架在那里,帮助你做到这一点更容易,但还是有整合的应用程序,它适应框架(当然,该应用程序必须用C / C ++的事实)的问题。

1) if your application is written mostly in C/C++ using JNI, you can write a wrapper and interface it with the iOS (i.e. provide callbacks from iOS to your JNI written function). There may be frameworks out there that help you do this easier, but there's still the problem of integrating the application and adapting it to the framework (and of course the fact that the application has to be written in C/C++).

2)改写为iOS。我不知道有没有什么好公司,为你做这个。此外,由于各种各样的应用程序,可以写,可以使用不同的服务和API,有可能没有任何软件,可以端口为你(我猜这种软件就像一个金矿嘿嘿),或者做一个很在这好工作。

2) rewrite it for iOS. I don't know whether there are any good companies that do this for you. Also, due to the variety of applications that can be written which can use different services and API, there may not be any software that can port it for you (I guess this kind of software is like a gold mine heh) or do a very good job at that.

3)我认为有基于Java> C / C ++的转换器,但不会帮助你在任何时候涉及到API的差别。此外,你可能会发现自己挣扎越得到转换code工作在任何平台上,而不是改写为iOS从头开始您的应用程序。

3) I think that there are Java->C/C++ converters, but there won't help you at all when it comes to API differences. Also, you may find yourself struggling more to get the converted code working on any of the platforms rather than rewriting your application from scratch for iOS.

问题在于相当多的服务和API的应用程序正在使用。我还没有真正审视这件事,但可能会有一些的API,提供某些功能在Android中,内部监督办公室不提供。

The problem depends quite a bit on the services and APIs your application is using. I haven't really look this up, but there may be some APIs that provide certain functionality in Android that iOS doesn't provide.

使用C / C ++和本地编译它所需的平台看起来像的方式去为Android,iOS的-Win7Mobile跨平台开发。这得到了应用程序的核心/核心,你可以用它来进行实际的应用逻辑,你有点。

Using C/C++ and natively compiling it for the desired platform looks like the way to go for Android-iOS-Win7Mobile cross-platform development. This gets you somewhat of an application core/kernel which you can use to do the actual application logic.

至于操作系统特定部分(API)的应用程序正在使用,你必须设置通信接口他们和你的应用程序的核心之间。

As for the OS specific parts (APIs) that your application is using, you'll have to set up communication interfaces between them and your application's core.