开发者

Scala actors on android

I tried using actors in a small scala (2.8) app on android (2.1) today and I keep getting a really weird error referencing 开发者_JAVA百科sun.misc.Unsafe.throwException.

I'm thinking that maybe the dalvik VM doesn't include this so Actors basically can't be used on android but I hope I'm wrong.

Did anyone manage to get actors working on android?


Yes, as a matter of fact, they work for me on either Android 2.1 or 2.2.

It is only simple use to do some extremely simple processing after an UI event occurs (setting coordinates on a PicturePanel), but Actors did work without problems so far.

The way I build & deploy the application is SBT with android-plugin 0.4.2 by jberkel, the versions of Scala used has included all versions from 2.8.0RC3 to RC6.


I could make actors work using scala 2.9.1. I have used scala-android-libs to install scala in my device.

You can also check this blogpost by jgoday.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜