Grafting Scala 2.8 into a Netbeans NBAndroid Project...What steps am I missing?
- by Michael Kohout
Hi All;
Due to Apple's recent T+C hijinks, I've become interested in developing for Android.
Anyways, I'm trying to get a mixed-language Android 2.1 project going in Netbeans 6.8 (with the NBAndroid 0.10 plugin). The two languages being Java and Scala(2.8 head build). To give you a basic idea of what the app does right now, it's just a simple "Hello World" app.
To get this to build, I've modified the projects's build.xml file:
--
-injars ${scala-library}(!META-INF/MANIFEST.MF,!library.properties)
-outjars "${build.classes.dir}/classes.min.jar"
-libraryjars "${file.reference.android.jar}"
-dontwarn
-dontoptimize
-dontobfuscate
-keep public class * extends android.app.Activity
-keep public class scala.xml.include.sax.Main**
I've gotten the project so that it'll build, but it errors on startup in my Android Emulator(inside the emulator Android tells me my application has stopped unexpectedly).
So my questions are: Does anyone see what I may be doing wrong? And is there any way to get access to the logs that the emulator must create?
thanks
Mike Kohout