News for hackers. Stuff that matters.

Ask HN: Could Android offer an API identical to the iOS?

Would it be legal for Google to "reverse engineer" the iOS API so that iPhone apps can be ported to Android seamlessly? That way, iPhone apps could run on Android and vice versa. Would it be a good thing? I'm asking because it seems that Oracle's lawsuit might force Android to drop Java.
( 7 comments | 7 points | on HN )
Re:Ask HN: Could Android offer an API identical to the iOS? by Asa-Nisse on Sunday August 15, 2010 @08:47AM (#1605034)
Android "is" java, you cant drop java from android. Oracle is just pissing around. Java support in android just wont go away.

Secondly you cant reverse engineer iOS "API", its a language (Obj-C) and a API. The API consists of surely patented and copyrighted routines. Most of it is called Cocoa and personally I would say it sucks balls. Its a totally different metodology than what most other languages use.

iOS development is if anything even more cumbersome than android-development. I just dont see the point.

Also, there are initatives to crosscompile code (in LUA for instance) to both iOS and android.

Re:Ask HN: Could Android offer an API identical to the iOS? by andrewljohnson on Sunday August 15, 2010 @12:44PM (#1605381)
In my experience, iOS development is easier than Android, and it is basically because the docs, and surprisingly the community, is way more complete.
Re:Ask HN: Could Android offer an API identical to the iOS? by Skroob on Sunday August 15, 2010 @06:46PM (#1606169)
I don't think that's too surprising. The iOS development community is larger and more established. Should Android development ever make it to a similar scale, I'd imagine the community would be similarly complete.

Documentation, on the other hand, is entirely dependent on Google. And we all know how much engineers love writing documentation.

Re:Ask HN: Could Android offer an API identical to the iOS? by ergo98 on Sunday August 15, 2010 @12:32PM (#1605364)
>Android "is" java, you cant drop java from android

The Android OS is Linux. The Dalvik runtime runs a unique bytecode.

My x86 processor runs x86 (which in current processors is essentially an intermediate language). In the 80s someone might have looked at the codebase and said "the x86 runs on C", because of course virtually all development was done in C, but that is of course not the case.

Android could move to an entirely different source language (Java was chosen because of the strong support in Eclipse) -- say C# -- but the problem is not the language, but rather Sun cum Oracle's patents on several basic tenets of a secure virtual machine -- it isn't about Java but is "Java-like" behaviours.

[deleted]
Re:Ask HN: Could Android offer an API identical to the iOS? by olalonde on Sunday August 15, 2010 @01:08PM (#1605435)
Not exactly sure if this is supposed to be a reply to my question.
Re:Ask HN: Could Android offer an API identical to the iOS? by qwzybug on Sunday August 15, 2010 @01:15PM (#1605453)
Ha, fail. That was supposed to be a reply to another reply. Wups!
Re:Ask HN: Could Android offer an API identical to the iOS? by cellurl on Monday August 16, 2010 @05:29PM (#1609358)
I applaud any way to merge OS's. That would be novel and in the spirit of Google!

-jp wikispeedia.org "Back Seat Driver"