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 su开发者_Python百科pport 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?
Take a look at http://code.google.com/p/android-scripting
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.
精彩评论