开发者

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

开发者 https://www.devze.com 2022-12-22 20:16 出处:网络
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 ev

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消