有没有一种简单的方法可以将 Android 应用程序转换为 iPad、IPhone [英] Is there an easy way to convert Android Application to IPad, IPhone

查看:26
本文介绍了有没有一种简单的方法可以将 Android 应用程序转换为 iPad、IPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Market 中运行了一个不错的应用程序.有几个人要求我提供 iPad/Phone 版本.如果我尝试这样做,我会在这里做什么?

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 不像 Android 那样使用 Java,因此您的选择非常有限:

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

1) 如果您的应用程序主要是使用 JNI 用 C/C++ 编写的,您可以编写一个包装器并将其与 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 差异时根本无济于事.此外,您可能会发现自己更难以让转换后的代码在任何平台上运行,而不是从头开始为 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 中提供了 iOS 没有提供的某些功能.

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.

这篇关于有没有一种简单的方法可以将 Android 应用程序转换为 iPad、IPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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