We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
老实说,我认为你所计划的只会产生蹩脚的代码,而且很难维护。我意识到这听起来像是很多工作,但从长远来看它会更容易,我只是将应用程序的概念“移植”到 Android 并从头开始编写。
In all honesty, I think that what you are planing is just going to make for crappy code that will be insanely hard to maintain. I realize it sounds like a lot of work, but its gonna be easier in the long run, I would just "port" the concept of the app to android and write it from the ground up.
Apportable SDK
它将 Objective-C 应用程序交叉编译到 Android,无需对原始代码库进行大量更改。 Apportable 不是将代码翻译为 Java,而是交叉编译您的代码,绕过 Java 运行时,直接在 Android 设备的处理器上运行,从而获得与 iOS 版本相媲美的速度和性能。
该平台已经在超过 150 台设备的 Apportable 库上进行了测试,并且在野外,由 Apportable 驱动的应用程序已在数千台设备上获得了 5 星级评价。
此处查看 SDK
The Apportable SDK
It cross-compiles Objective-C applications to Android, without extensive changes to the original codebase. Instead of translating the code to Java, Apportable cross-compiles your code to run directly on the Android device’s processor, bypassing the Java runtime, resulting in speed and performance that rivals the iOS version.
The platform has been tested on Apportable’s library of over 150 devices and in the wild, where Apportable-powered apps have received 5-star reviews on thousands of devices.
check out the sdk here
AFAIK 没有自动工具可以将 Objective-C 转换为 Java。 java2objc 则相反。
以下是将 Objective-C 移植到 Java 的一些官方提示: http:// www.nextcomputers.org/NeXTfiles/Software/WebObjects/Guides/PortingObjectiveCtoJava.pdf
我不是 iOS 专家,但 AFAIK iOS 没有布局管理器 - 它使用 XIB/NIB 进行布局(或动态地在代码,不推荐)。在 Android 上,有一些布局类主要用于支持不同的分辨率。另外,布局是通过XML文件声明的。
所以看起来就在那里在你面前有大量的手工编码。由于项目相当大,我会得到了解 Android 和 iPhone 的专家的帮助。
AFAIK there is no automatic tool to convert Objective-C to Java. There is java2objc that does the reverse.
Here are some official tips for porting Objective-C to Java: http://www.nextcomputers.org/NeXTfiles/Software/WebObjects/Guides/PortingObjectiveCtoJava.pdf
I'm not an iOS expert, but AFAIK iOS does not have layout managers - it uses XIB/NIB to do layout (or dynamically in code, which is not recommended). On Android there are layout classes which are primarily used to support different resolutions. Also, layout is declared via XML files.
So it seems there is a lot of hand-coding in front of you. Since a project is quite large, I'd get a help of an expert that knows both Android and iPhone.
要从 C 或 C++ 转向 Android,您最好使用 NDK。问题是我认为这对于 Objective C 来说是不可能的(至少不是直接的?)。
我认为最好尝试转到 C,然后使用 NDK 使其成为 Android 应用程序。从您的代码,通过 UML 到 JAVA 听起来是一个更难的选择。
For going from C or C++ to Android you are probably best of using the NDK. The problem is that I don't think this is possible (at least, not directly?) for Objective C.
I think it might be best to try and go to C, and then use the NDK to make it into an app for Android. Going from your code, trough UML to JAVA sounds like a much harder option.
只是为了让您知道故事的结局,我继续使用 Sparx Enterprise Architect,并让我的设计、架构和文档得到很好的控制,最终适用于除 JavaScript 之外的所有平台。集成新功能时有点乏味,但在企业环境中它节省了我很多时间。我们正在开发iOS、桌面(Web2.0/HTML5)、Android、Blackberry、Symbian 和一些路由器系统。为了摆脱特定于平台的事情,我总是引入了一个附加层。到目前为止似乎适用于我们的产品。
再次感谢大家,g。
just to let you know how the story did end up, I kept using Sparx Enterprise Architect and have my design, architecture and documentation well under control, for all platforms finally except for JavaScript. Its a bit tedious when integrating new features but in an enterprise environment it saved me a lot of time. We are working on iOS, Desktop(Web2.0/HTML5), Android, Blackberry, Symbian and some router systems. To get rid of platform specific things, I introduced always an additional layer. Seems to work for our products so far.
Thanks to all again, g.
MyAppConverter 服务有助于将原生 iOS 移动应用立即转换为原生 Android 应用,它并不主要关注应用的外观和用户界面交互。这意味着它不会按原样复制您的应用程序。相反,MyAppConverter 会进行所有更改以使项目适合 Android 应用程序的开发。
MyAppConverter 目前仅支持 iOS 到 Android 转换和 objective-c 到迅速。
MyAppConverter service helps to convert native iOS mobile apps instantly to native Android app, it's not focused mainly on the look and feel, and UI interaction of your app. That means it don't replicate your application as it is. Instead, MyAppConverter make all changes to make a project suitable for the development of an Android application.
MyAppConverter currently support only iOS to Android conversion and objective-c to swift.