It's not a secret anymore!
The moose likes Android and the fly likes groovy on android? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "groovy on android?" Watch "groovy on android?" New topic

groovy on android?

rob tirserio

Joined: May 13, 2008
Posts: 6
is it possible/coming down the road, do use groovy while developing on android?
Mark L. Murphy
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
NOTE: I am not a Groovy expert.

There appears to be two ways to use Groovy: pre-compiled ("compiles straight to Java bytecode so you can use it anywhere you can use Java") and dynamically-compiled (generating bytecodes on the fly while interpreting Groovy source).

Pre-compiled Groovy might work on Android, but the Groovy-generated .class files would need to be integrated into the Android build process so they can be converted to Dalvik VM bytecode.

Runtime-compiled Groovy would work only if Groovy were taught how to generate Dalvik VM bytecode.

If there is pure interpreted mode for Groovy, where it does not attempt to generate bytecode at runtime, that might work as an embedded scripting language.

Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development
I agree. Here's the link:
subject: groovy on android?
It's not a secret anymore!