Linked by Hadrien Grasland on Thu 2nd Jun 2011 09:30 UTC, submitted by Yann
PDAs, Cellphones, Wireless The "In the box" project aims at porting the Dalvik VM and the Gingerbread API on top of iOS, so that Android applications may be easily turned into iOS ones. Unlike the Alien Dalvik project, it is community-driven, and the source released under version 2.0 of the Apache Software License. Recently, this project has published its first result: a "Hello World" Android application running on top of iOS.
Order by: Score:
Can do, too
by roar on Thu 2nd Jun 2011 10:32 UTC
roar
Member since:
2009-12-26

No big deal, here's my Hello World iOS App that runs on Android:
<html>
<body>
Hello World
</body>
</html>

Reply Score: 0

RE: Can do, too
by Laurence on Thu 2nd Jun 2011 11:39 UTC in reply to "Can do, too"
Laurence Member since:
2007-03-26

No big deal, here's my Hello World iOS App that runs on Android:
<html>
<body>
Hello World
</body>
</html>

Good look using GPS, the digital compass and all the other cool hardware features on modern smartphones with HTML.

Reply Score: 3

RE[2]: Can do, too
by roar on Thu 2nd Jun 2011 15:07 UTC in reply to "RE: Can do, too"
roar Member since:
2009-12-26
RE[3]: Can do, too
by Laurence on Thu 2nd Jun 2011 15:27 UTC in reply to "RE[2]: Can do, too"
Laurence Member since:
2007-03-26


I stand corrected.

thank you for that excellent link ;)

Edited 2011-06-02 15:28 UTC

Reply Score: 2

RE[2]: Can do, too
by Nycran on Tue 7th Jun 2011 13:40 UTC in reply to "RE: Can do, too"
Nycran Member since:
2006-02-06

There's an app for that :-)

http://www.phonegap.com

GPS, Compass, Accelerometer, File system access, taking photos, sqlite relational client side database, all available using javascript.

Reply Score: 2

Comment by clasqm
by clasqm on Thu 2nd Jun 2011 11:34 UTC
clasqm
Member since:
2010-09-23

Correct me if I am wrong, but doesn't Apple frown on using foreign APIs on iOS and ban them from the App Store? So won't these apps be Cydia-only?

Reply Score: 1

RE: Comment by clasqm
by Neolander on Thu 2nd Jun 2011 11:55 UTC in reply to "Comment by clasqm"
Neolander Member since:
2010-03-08

I think they have changed their mind about this lately, in order to allow things like Unity3D or single-game emulators to exist. The thing they remain adamant about is interpretors which can be fed third-party code to extend their functionality.

Reply Score: 1

RE[2]: Comment by clasqm
by Alfman on Thu 2nd Jun 2011 16:31 UTC in reply to "RE: Comment by clasqm"
Alfman Member since:
2011-01-28

Have they actually changed their rules, or are they just turning a blind eye?

If memory serves me, they officially banned any code compilers/interpretors other than their own because they wanted to explicitly stop cross platform development.

Reply Score: 2

RE[3]: Comment by clasqm
by Neolander on Thu 2nd Jun 2011 16:33 UTC in reply to "RE[2]: Comment by clasqm"
Neolander Member since:
2010-03-08

I remember them doing so, too, but I think they also have changed the terms later to something that allowed third-party frameworks.

Ah, if only Apple weren't Apple and freely disclosed their licensing terms so that everyone can check them instead of putting them under NDA...

Reply Score: 1

RE[3]: Comment by clasqm
by Bill Shooter of Bul on Thu 2nd Jun 2011 17:25 UTC in reply to "RE[2]: Comment by clasqm"
Bill Shooter of Bul Member since:
2006-07-14

No, they changed the rule after the protests.

http://www.apple.com/pr/library/2010/09/09statement.html

Reply Score: 2

RE: Comment by clasqm
by ba1l on Fri 3rd Jun 2011 12:24 UTC in reply to "Comment by clasqm"
ba1l Member since:
2007-09-08

The policy forbidding apps developed with non-Apple tools doesn't seem to apply anymore. Otherwise, games made with Unity3D (which uses Mono) or the Unreal engine (which uses UnrealScript) wouldn't be allowed. Neither would MonoTouch, any games that use Lua, ports of old games based on emulators...

There is a technical problem though. iOS uses non-executable pages for all memory allocated by apps. This seems to be mostly a security measure. There is no way to opt out, turn it off, or mark memory as executable. The Xbox 360 does the same thing.

That means that you can not have a JIT in an iOS application (or on an Xbox 360 for that matter). At all. Unless you happen to be Safari (which is allowed to allocate executable pages for the JavaScript engine in iOS 4.3) or jailbreak the thing (which might remove the restriction - haven't checked).

So even if this works, you'd either have to do ahead-of-time compilation into native code, or you'll be stuck with a slow interpreter just like the early versions of Dalvik.

Reply Score: 2

emulation / scripting
by FunkyELF on Thu 2nd Jun 2011 11:53 UTC
FunkyELF
Member since:
2006-07-26

Doesn't Apple ban emulation and scripting / interpreting?

I would imagine the use of a VM inside your application would get get your application rejected.

Reply Score: 2

Not quite there yet
by joshv on Fri 3rd Jun 2011 22:22 UTC
joshv
Member since:
2006-03-18

Basically this is just a port of the Dalvik VM to iOS. The demo shows Hello.java printing 'Hello, World' to the debug console. Not to downplay their achievement, but there's no indication that they've done anything to port the Android UI toolkit. That might take a bit more work.

Reply Score: 2