The new SDK 1.5 allows "add-ons" to be created: these create new system images that can add a custom library. On the Eclipse side, that library gets automatically added to the app classpath. On the Android side, apps then need to include a <uses-library> in their manifest and they automatically get access to that library at runtime.
This could be something worth looking at for Scala. The downside: it requires manually adding the said library on the devices as system libraries and I'd assume that would require root. I might be wrong. I personally have no clue how to make an add-on, I guess there's a sample somewhere in the android source code. Speaking of which there's this in the platform: http://android.git.kernel.org/?p=platform/development.git;a=blob;f=samples/PlatformLibrary/README.txt;hb=HEAD That means you need the platform code to make the library. However once you make an "SDK add-on" you can develop apps using the regular SDK. R/ On Mon, May 25, 2009 at 11:30 AM, Jesper Nordenberg <megagu...@gmail.com> wrote: > > I had the same problem you describe. After trimming down the scala- > library.jar file to only contain the core classes (about 1.8 MB) and > adding it as an external jar everything worked fine. However, Eclipse > build times are now quite long as the dex file is quite large and is > regenerated for each change, so we're looking for a way to add the > Scala jar as a library in the emulator and adding it to the > application classpath. I don't know if this is possible and if it is, > the documentation is really hard to find. If you (or anyone else) can > share some hints on how to achieve this, I'd be grateful. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---