Alexander Trauzzi
Alexander Trauzzi

Reputation: 7396

What's the best way to add scripting to an Android app?

I have an XML based file format that I'm using to store and load instances of objects. I'm interested in adding some scripting support to those objects so that they can respond to events.

That said, I also don't want to cripple performance. Are there any well known scripting options for Android - maybe even ones where while loading, I can pre-compile and cache the scripts?

Upvotes: 3

Views: 343

Answers (2)

Alexander Trauzzi
Alexander Trauzzi

Reputation: 7396

At present it looks as though there are limited options to have a scripting language pre-compile.

Another approach I might look into is seeing if I can use dynamically loaded classes.

Upvotes: 0

Tuomas Pelkonen
Tuomas Pelkonen

Reputation: 7821

Take a look at http://code.google.com/p/android-scripting

Upvotes: 3

Related Questions