문제

if I have a native android app (written in Java of course), what cross platform tool would you recommend to make it usable on iOS as well? I have been reading quite a lot about it, but most toold require code being written in html,css,js (phonegap, appcelerator etc), or for instance c# (xamarin), but which one would wrap my java code?

도움이 되었습니까?

해결책

There is no solution that will work out of the box. You'll likely have to rewrite at least the UI whatever way you choose.

If you want the code to run on any mobile platform, you'll have to rewrite your code in html/css/js.

If you just want it to run on iOS, you have these options:

  • If you actually want to use the very same code, use RoboVM. This will allow you to parts of the original Java code on iOS in a JVM.

  • Another approach would be to automatically generate Objective C code from your Java code. This can be done using J2ObjC.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top